some more : try to make read/write not break the build if the return value is not...
authorsahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 2 May 2007 12:17:01 +0000 (12:17 +0000)
committersahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 2 May 2007 12:17:01 +0000 (12:17 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21641 f5534014-38df-0310-8fa8-9805f1628bb7

gtk/rtp_analysis.c

index 9a1545d2ef5e55988c77fd96e046e8bcdf900844..9ebfd69d719a90fb47a8ca502032f041a80467ad 100644 (file)
@@ -2535,28 +2535,28 @@ static gboolean copy_file(gchar *dest, gint channels, gint format, user_data_t *
                *pd = (unsigned char)0x64; nchars=eth_write(to_fd, pd, 1);
                /* header offset == 24 bytes */
                *pd = (unsigned char)0x00; nchars=eth_write(to_fd, pd, 1);
-               eth_write(to_fd, pd, 1);
-               eth_write(to_fd, pd, 1);
+               nchars=eth_write(to_fd, pd, 1);
+               nchars=eth_write(to_fd, pd, 1);
                *pd = (unsigned char)0x18; nchars=eth_write(to_fd, pd, 1);
                /* total length, it is permited to set this to 0xffffffff */
                *pd = (unsigned char)0xff; nchars=eth_write(to_fd, pd, 1); 
-               eth_write(to_fd, pd, 1); 
-               eth_write(to_fd, pd, 1); 
-               eth_write(to_fd, pd, 1);
+               nchars=eth_write(to_fd, pd, 1); 
+               nchars=eth_write(to_fd, pd, 1); 
+               nchars=eth_write(to_fd, pd, 1);
                /* encoding format == 8 bit ulaw */
                *pd = (unsigned char)0x00; nchars=eth_write(to_fd, pd, 1);
-               eth_write(to_fd, pd, 1);
-               eth_write(to_fd, pd, 1);
+               nchars=eth_write(to_fd, pd, 1);
+               nchars=eth_write(to_fd, pd, 1);
                *pd = (unsigned char)0x01; nchars=eth_write(to_fd, pd, 1);
                /* sample rate == 8000 Hz */
                *pd = (unsigned char)0x00; nchars=eth_write(to_fd, pd, 1);
-               eth_write(to_fd, pd, 1);
+               nchars=eth_write(to_fd, pd, 1);
                *pd = (unsigned char)0x1f; nchars=eth_write(to_fd, pd, 1);
                *pd = (unsigned char)0x40; nchars=eth_write(to_fd, pd, 1);
                /* channels == 1 */
                *pd = (unsigned char)0x00; nchars=eth_write(to_fd, pd, 1);
-               eth_write(to_fd, pd, 1);
-               eth_write(to_fd, pd, 1);
+               nchars=eth_write(to_fd, pd, 1);
+               nchars=eth_write(to_fd, pd, 1);
                *pd = (unsigned char)0x01; nchars=eth_write(to_fd, pd, 1);