diff options
author | jilles <jilles@FreeBSD.org> | 2011-11-05 22:33:19 +0000 |
---|---|---|
committer | jilles <jilles@FreeBSD.org> | 2011-11-05 22:33:19 +0000 |
commit | 3297d3be53991d9d6ea5cd3e6ee52ba295280912 (patch) | |
tree | b4d697ff6d59a7589f2c614d7d29f5d2fee9ff2d /tools/regression/fifo | |
parent | 46fb1cb9846975c5fbd294c80ba76492fa7e0f6a (diff) | |
download | FreeBSD-src-3297d3be53991d9d6ea5cd3e6ee52ba295280912.zip FreeBSD-src-3297d3be53991d9d6ea5cd3e6ee52ba295280912.tar.gz |
fifo_misc test: Fix swapped lseek arguments.
It worked regardless because SEEK_CUR happens to be 1.
Diffstat (limited to 'tools/regression/fifo')
-rw-r--r-- | tools/regression/fifo/fifo_misc/fifo_misc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/regression/fifo/fifo_misc/fifo_misc.c b/tools/regression/fifo/fifo_misc/fifo_misc.c index d0a2cf7..5e04b06 100644 --- a/tools/regression/fifo/fifo_misc/fifo_misc.c +++ b/tools/regression/fifo/fifo_misc/fifo_misc.c @@ -115,7 +115,7 @@ test_lseek(void) exit(-1); } - if (lseek(reader_fd, SEEK_CUR, 1) >= 0) { + if (lseek(reader_fd, 1, SEEK_CUR) >= 0) { warnx("%s: lseek succeeded instead of returning ESPIPE", __func__); cleanfifo("testfifo", reader_fd, writer_fd); |