From 2a4c9ec6aadb19df6fb0a391e74bd7160130f4df Mon Sep 17 00:00:00 2001 From: Tim-Philipp Müller Date: Thu, 11 Sep 2008 11:26:06 +0000 Subject: ext/raw1394/: Pretend to care about the result of write() which works around compiler warnings. Original commit message from CVS: * ext/raw1394/gstdv1394src.c: (SEND_COMMAND): * ext/raw1394/gsthdv1394src.c: (SEND_COMMAND): Pretend to care about the result of write() which works around compiler warnings. --- ext/raw1394/gsthdv1394src.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext/raw1394/gsthdv1394src.c') diff --git a/ext/raw1394/gsthdv1394src.c b/ext/raw1394/gsthdv1394src.c index db06d70d..8293b4a0 100644 --- a/ext/raw1394/gsthdv1394src.c +++ b/ext/raw1394/gsthdv1394src.c @@ -46,8 +46,8 @@ #define SEND_COMMAND(src, command) \ G_STMT_START { \ - unsigned char c; c = command; \ - write (WRITE_SOCKET(src), &c, 1); \ + int _res; unsigned char c; c = command; \ + _res = write (WRITE_SOCKET(src), &c, 1); \ } G_STMT_END #define READ_COMMAND(src, command, res) \ -- cgit