chiark / gitweb /
terminal: sd_bus_error_get_errno returns positive errno
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>
Mon, 15 Sep 2014 20:55:36 +0000 (22:55 +0200)
committerThomas Hindoe Paaboel Andersen <phomes@gmail.com>
Tue, 16 Sep 2014 19:31:15 +0000 (21:31 +0200)
commit9169b9a8cc43046f92a4c5c85b0b3fe9ca0fb429
tree162c86288cdd0079b0a936849f0852bfe774abfd
parentb49ffb29ed902f173852707652b3e3c9c303cebb
terminal: sd_bus_error_get_errno returns positive errno

The 3 calls to sd_bus_error_get_errno appear to expect a negative
return value.

This patch negates the returned value so it matches the other error
cases in the 3 functions where sd_bus_error_get_errno is used.
src/libsystemd-terminal/sysview.c