diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2010-12-14 15:43:41 +0200 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2010-12-14 15:43:41 +0200 |
commit | ea6e83ac67ce2934f35f044d520f2cba7ea7c921 (patch) | |
tree | 63a5be406a805c5e3fd9816c0ff0dcaaaf235ec0 /serial | |
parent | c1514f110e5581441a0a4a09cc4806037c8a80c0 (diff) | |
download | bluez-ea6e83ac67ce2934f35f044d520f2cba7ea7c921.tar.gz |
Fix signess of err variable passed to strerror
Diffstat (limited to 'serial')
-rw-r--r-- | serial/port.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/serial/port.c b/serial/port.c index c18889d3..33450b33 100644 --- a/serial/port.c +++ b/serial/port.c @@ -273,7 +273,7 @@ static gboolean open_continue(gpointer user_data) if (fd < 0) { int err = -errno; error("Could not open %s: %s (%d)", - port->dev, strerror(err), err); + port->dev, strerror(-err), -err); if (!--ntries) { /* Reporting error */ open_notify(fd, err, port); |