aboutsummaryrefslogtreecommitdiff
path: root/serial
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2010-12-14 15:43:41 +0200
committerJohan Hedberg <johan.hedberg@nokia.com>2010-12-14 15:43:41 +0200
commitea6e83ac67ce2934f35f044d520f2cba7ea7c921 (patch)
tree63a5be406a805c5e3fd9816c0ff0dcaaaf235ec0 /serial
parentc1514f110e5581441a0a4a09cc4806037c8a80c0 (diff)
downloadbluez-ea6e83ac67ce2934f35f044d520f2cba7ea7c921.tar.gz
Fix signess of err variable passed to strerror
Diffstat (limited to 'serial')
-rw-r--r--serial/port.c2
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);