From 7131510a19ff72583ff5ba7079fdb88d1346b587 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Wed, 26 Jul 2006 12:37:30 +0000 Subject: Get the return value for write() call --- hcid/sdp.c | 4 ++-- 1 file 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; } -- cgit