From 214cb42c626cfe5fe5d9ef1e83e7b23cca1cf02b Mon Sep 17 00:00:00 2001 From: Daniel Borkmann Date: Tue, 4 Jun 2013 14:08:46 +0200 Subject: ioops: fix build error by renaming 'len' variable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- ioops.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ioops.c b/ioops.c index a5dc94a..7cec2fd 100644 --- a/ioops.c +++ b/ioops.c @@ -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); -- cgit v1.2.3-54-g00ecf