diff options
author | Anderson Lizardo <anderson.lizardo@openbossa.org> | 2012-08-24 17:03:49 -0400 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2012-08-26 10:28:49 +0300 |
commit | 94f6e7b17c507b325ca3aad58d83671fecb34e32 (patch) | |
tree | a549e5d5e02b7517ebefd2eb908ce3f9bfb03515 /profiles/input/server.c | |
parent | b809cae2368e5ad0bed46e9be7afef99fed80786 (diff) | |
download | bluez-94f6e7b17c507b325ca3aad58d83671fecb34e32.tar.gz |
input: Fix signedness issue on POSIX error code usage
By convention, error variables containing POSIX error code (usually
called "err") are negative. This commit fixes a couple of places where
positive values are expected.
Diffstat (limited to 'profiles/input/server.c')
-rw-r--r-- | profiles/input/server.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/profiles/input/server.c b/profiles/input/server.c index 86e2ac8c1..8965c4e79 100644 --- a/profiles/input/server.c +++ b/profiles/input/server.c @@ -180,7 +180,7 @@ static void confirm_event_cb(GIOChannel *chan, gpointer user_data) ba2str(&src, addr); error("input: authorization for %s failed: %s (%d)", - addr, strerror(-ret), ret); + addr, strerror(-ret), -ret); g_io_channel_unref(server->confirm); server->confirm = NULL; |