diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2006-07-26 12:37:30 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2006-07-26 12:37:30 +0000 |
commit | 7131510a19ff72583ff5ba7079fdb88d1346b587 (patch) | |
tree | 37301287ac41231243357a97937d5d432baf1440 /hcid/sdp.c | |
parent | 312e3ea913578a40d78635d5702bedd655501445 (diff) |
Get the return value for write() call
Diffstat (limited to 'hcid/sdp.c')
-rw-r--r-- | hcid/sdp.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } |