diff options
author | sahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7> | 2007-05-02 12:07:46 +0000 |
---|---|---|
committer | sahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7> | 2007-05-02 12:07:46 +0000 |
commit | 9803d6bcfc9045e8c2d6061ccd347086a05ee067 (patch) | |
tree | ab3e610262f7fdef630e375415f9938c93d7be35 | |
parent | 2dbf2dd8e73b0da41a39f2c0aa39fe653782e36f (diff) |
do something with the return value from eth_write (which is a define for fwrite)so that -Werror does not cause the build to fail
-This line, and those below, will be ignored--
M gtk/rtp_analysis.c
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21639 f5534014-38df-0310-8fa8-9805f1628bb7
-rw-r--r-- | gtk/rtp_analysis.c | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/gtk/rtp_analysis.c b/gtk/rtp_analysis.c index 583374294f..9a1545d2ef 100644 --- a/gtk/rtp_analysis.c +++ b/gtk/rtp_analysis.c @@ -2503,6 +2503,7 @@ static gboolean copy_file(gchar *dest, gint channels, gint format, user_data_t * progdlg_t *progbar; guint32 progbar_count, progbar_quantum, progbar_nextstep = 0, count = 0; gboolean stop_flag = FALSE; + size_t nchars; forw_fd = eth_open(user_data->f_tempname, O_RDONLY | O_BINARY, 0000 /* no creation so don't matter */); if (forw_fd < 0) @@ -2528,35 +2529,35 @@ static gboolean copy_file(gchar *dest, gint channels, gint format, user_data_t * { /* First we write the .au header. XXX Hope this is endian independant */ /* the magic word 0x2e736e64 == .snd */ - *pd = (unsigned char)0x2e; eth_write(to_fd, pd, 1); - *pd = (unsigned char)0x73; eth_write(to_fd, pd, 1); - *pd = (unsigned char)0x6e; eth_write(to_fd, pd, 1); - *pd = (unsigned char)0x64; eth_write(to_fd, pd, 1); + *pd = (unsigned char)0x2e; nchars=eth_write(to_fd, pd, 1); + *pd = (unsigned char)0x73; nchars=eth_write(to_fd, pd, 1); + *pd = (unsigned char)0x6e; nchars=eth_write(to_fd, pd, 1); + *pd = (unsigned char)0x64; nchars=eth_write(to_fd, pd, 1); /* header offset == 24 bytes */ - *pd = (unsigned char)0x00; eth_write(to_fd, pd, 1); + *pd = (unsigned char)0x00; nchars=eth_write(to_fd, pd, 1); eth_write(to_fd, pd, 1); eth_write(to_fd, pd, 1); - *pd = (unsigned char)0x18; 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; eth_write(to_fd, pd, 1); + *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); /* encoding format == 8 bit ulaw */ - *pd = (unsigned char)0x00; eth_write(to_fd, pd, 1); + *pd = (unsigned char)0x00; nchars=eth_write(to_fd, pd, 1); eth_write(to_fd, pd, 1); eth_write(to_fd, pd, 1); - *pd = (unsigned char)0x01; 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; eth_write(to_fd, pd, 1); + *pd = (unsigned char)0x00; nchars=eth_write(to_fd, pd, 1); eth_write(to_fd, pd, 1); - *pd = (unsigned char)0x1f; eth_write(to_fd, pd, 1); - *pd = (unsigned char)0x40; 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; eth_write(to_fd, pd, 1); + *pd = (unsigned char)0x00; nchars=eth_write(to_fd, pd, 1); eth_write(to_fd, pd, 1); eth_write(to_fd, pd, 1); - *pd = (unsigned char)0x01; eth_write(to_fd, pd, 1); + *pd = (unsigned char)0x01; nchars=eth_write(to_fd, pd, 1); switch (channels) { |