diff options
author | Sean Bright <sean@malleable.com> | 2009-07-23 17:43:00 +0000 |
---|---|---|
committer | Sean Bright <sean@malleable.com> | 2009-07-23 17:43:00 +0000 |
commit | 4150650139ff986a1c46c346485a2caf33da8830 (patch) | |
tree | 2ee1ff0cce5d35f54b36de0560abcf0f172a8c96 /dahdi_monitor.c | |
parent | f241cf6bb7ffd115e15b14ecba9c678cdaf7c968 (diff) |
Pay attention to the return value of fwrite() to silence a compiler warning.
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@6887 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'dahdi_monitor.c')
-rw-r--r-- | dahdi_monitor.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/dahdi_monitor.c b/dahdi_monitor.c index 150df39..ce900d6 100644 --- a/dahdi_monitor.c +++ b/dahdi_monitor.c @@ -764,7 +764,9 @@ int main(int argc, char *argv[]) wavheaders[i].data_data_size = bytes_written[i]; rewind(ofh[i]); - fwrite(&wavheaders[i], 1, sizeof(struct wavheader), ofh[i]); + if (fwrite(&wavheaders[i], 1, sizeof(struct wavheader), ofh[i]) != sizeof(struct wavheader)) { + fprintf(stderr, "Failed to write out a full wav header.\n"); + } fclose(ofh[i]); } printf("done cleaning up ... exiting.\n"); |