summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2006-07-26 12:37:30 +0000
committerMarcel Holtmann <marcel@holtmann.org>2006-07-26 12:37:30 +0000
commit7131510a19ff72583ff5ba7079fdb88d1346b587 (patch)
tree37301287ac41231243357a97937d5d432baf1440
parent312e3ea913578a40d78635d5702bedd655501445 (diff)
Get the return value for write() call
-rw-r--r--hcid/sdp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hcid/sdp.c b/hcid/sdp.c
index 8837c436..b1fcaf26 100644
--- a/hcid/sdp.c
+++ b/hcid/sdp.c
@@ -62,7 +62,7 @@ static gboolean session_event(GIOChannel *chan, GIOCondition cond, gpointer data
sdp_pdu_hdr_t *hdr;
gsize len;
GIOError err;
- int sk;
+ int sk, ret;
if (cond & (G_IO_HUP | G_IO_ERR))
return FALSE;
@@ -81,7 +81,7 @@ static gboolean session_event(GIOChannel *chan, GIOCondition cond, gpointer data
sk = g_io_channel_unix_get_fd(chan);
- write(sk, ptr, 7);
+ ret = write(sk, ptr, 7);
return TRUE;
}