diff options
author | Daniel Borkmann <dborkman@redhat.com> | 2013-06-04 14:08:46 +0200 |
---|---|---|
committer | Daniel Borkmann <dborkman@redhat.com> | 2013-06-04 14:08:46 +0200 |
commit | 214cb42c626cfe5fe5d9ef1e83e7b23cca1cf02b (patch) | |
tree | d6a9765bb5ebabe664d9cdae6eafe46117618186 /ioops.c | |
parent | f712d7a28192cbfcde5845d0c2e78fefd7386273 (diff) |
ioops: fix build error by renaming 'len' variable
Argh, forgot to rename variables in read_blob_or_die/write_blob_or_die.
ioops.c: In function ‘read_blob_or_die’:
ioops.c:105:30: error: ‘len’ undeclared (first use in this function)
ioops.c:105:30: note: each undeclared identifier is reported only once for each function it appears in
ioops.c: In function ‘write_blob_or_die’:
ioops.c:116:31: error: ‘len’ undeclared (first use in this function)
make: *** [netsniff-ng/ioops.o] Error 1
Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Diffstat (limited to 'ioops.c')
-rw-r--r-- | ioops.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -102,7 +102,7 @@ int read_blob_or_die(const char *file, void *blob, size_t count) int fd, ret; fd = open_or_die(file, O_RDONLY); - ret = read_or_die(fd, blob, len); + ret = read_or_die(fd, blob, count); close(fd); return ret; @@ -113,7 +113,7 @@ int write_blob_or_die(const char *file, const void *blob, size_t count) int fd, ret; fd = open_or_die_m(file, O_WRONLY | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR); - ret = write_or_die(fd, blob, len); + ret = write_or_die(fd, blob, count); fdatasync(fd); close(fd); |