summaryrefslogtreecommitdiffstats
path: root/usr.bin/xlint
diff options
context:
space:
mode:
authorjilles <jilles@FreeBSD.org>2011-11-05 22:25:15 +0000
committerjilles <jilles@FreeBSD.org>2011-11-05 22:25:15 +0000
commit46fb1cb9846975c5fbd294c80ba76492fa7e0f6a (patch)
treeff1a311da1781cdf26cab90c9af355a4fe653a79 /usr.bin/xlint
parent96a86478513aeacf8337c6ed5f34248474b11e43 (diff)
downloadFreeBSD-src-46fb1cb9846975c5fbd294c80ba76492fa7e0f6a.zip
FreeBSD-src-46fb1cb9846975c5fbd294c80ba76492fa7e0f6a.tar.gz
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 <henning dot petersen at t-online dot de> Obtained from: NetBSD
Diffstat (limited to 'usr.bin/xlint')
-rw-r--r--usr.bin/xlint/xlint/xlint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/xlint/xlint/xlint.c b/usr.bin/xlint/xlint/xlint.c
index 553ac19..de3b527 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);
}
OpenPOWER on IntegriCloud