diff options
Diffstat (limited to 'ext/raw1394')
-rw-r--r-- | ext/raw1394/gstdv1394src.c | 4 | ||||
-rw-r--r-- | ext/raw1394/gsthdv1394src.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/ext/raw1394/gstdv1394src.c b/ext/raw1394/gstdv1394src.c index bd5014cc..5db691aa 100644 --- a/ext/raw1394/gstdv1394src.c +++ b/ext/raw1394/gstdv1394src.c @@ -68,8 +68,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) \ 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) \ |