diff options
author | Jim Meyering <meyering@redhat.com> | 2008-06-27 16:34:00 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2008-06-27 16:34:00 +0200 |
commit | 5b610a06b297b162f3c63e139e33eb0ca9113f70 (patch) | |
tree | 385e27bf4a43910b6918ee9e3dba07a6e4e9d192 | |
parent | 5cc42f7de6251792a02befab4b3df7b3023135d8 (diff) | |
download | coreutils-5b610a06b297b162f3c63e139e33eb0ca9113f70.tar.xz |
avoid a -Wsign-compare warning
* src/tee.c (tee_files): Swap fwrite's size/n_elem args and
compare the return value against "1".
-rw-r--r-- | src/tee.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -190,7 +190,7 @@ tee_files (int nfiles, const char **files) Standard output is the first one. */ for (i = 0; i <= nfiles; i++) if (descriptors[i] - && fwrite (buffer, 1, bytes_read, descriptors[i]) != bytes_read) + && fwrite (buffer, bytes_read, 1, descriptors[i]) != 1) { error (0, errno, "%s", files[i]); descriptors[i] = NULL; |