From: Zbigniew Jędrzejewski-Szmek Date: Tue, 12 Jan 2016 22:19:51 +0000 (-0500) Subject: basic,bus-error: return negative error from errno_from_name X-Git-Tag: v229.1~1^2~58 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=039c931bcd7a6aaf7fb7a8b48b41e2bfb0e6f485;hp=039c931bcd7a6aaf7fb7a8b48b41e2bfb0e6f485 basic,bus-error: return negative error from errno_from_name errno_from_name used an unusual return convention where 0 meant "not found". This tripped up config_parse_syscall_errno(), which would treat that as success. Return -EINVAL instead, and adjust bus_error_name_to_errno() for the new convention. Also remove a goto which was used as a simple if and clean up surroudning code a bit. ---