From 6e678e0ce96c5573d81afd6cf71877d65fa017c2 Mon Sep 17 00:00:00 2001 From: Jilles Tjoelker Date: Sat, 5 Nov 2011 22:25:15 +0000 Subject: [PATCH] lint: Fix lseek() argument order. Because SEEK_SET is 0, this seems to have no effect on the generated code. PR: bin/160806 Submitted by: Henning Petersen Obtained from: NetBSD --- usr.bin/xlint/xlint/xlint.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/xlint/xlint/xlint.c b/usr.bin/xlint/xlint/xlint.c index 553ac19c6f1a..de3b52710f6d 100644 --- a/usr.bin/xlint/xlint/xlint.c +++ b/usr.bin/xlint/xlint/xlint.c @@ -656,7 +656,7 @@ fname(const char *name) appcstrg(&args, name); /* we reuse the same tmp file for cpp output, so rewind and truncate */ - if (lseek(cppoutfd, SEEK_SET, (off_t)0) != 0) { + if (lseek(cppoutfd, (off_t)0, SEEK_SET) != 0) { warn("lseek"); terminate(-1); }