Module Name:    src
Committed By:   njoly
Date:           Sun Sep 18 09:07:35 UTC 2011

Modified Files:
        src/usr.bin/xlint/xlint: xlint.c

Log Message:
Fix lseek(2) swapped arguments.


To generate a diff of this commit:
cvs rdiff -u -r1.43 -r1.44 src/usr.bin/xlint/xlint/xlint.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/xlint/xlint/xlint.c
diff -u src/usr.bin/xlint/xlint/xlint.c:1.43 src/usr.bin/xlint/xlint/xlint.c:1.44
--- src/usr.bin/xlint/xlint/xlint.c:1.43	Mon Mar 22 01:29:30 2010
+++ src/usr.bin/xlint/xlint/xlint.c	Sun Sep 18 09:07:35 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: xlint.c,v 1.43 2010/03/22 01:29:30 mrg Exp $ */
+/* $NetBSD: xlint.c,v 1.44 2011/09/18 09:07:35 njoly Exp $ */
 
 /*
  * Copyright (c) 1996 Christopher G. Demetriou.  All Rights Reserved.
@@ -38,7 +38,7 @@
 
 #include <sys/cdefs.h>
 #if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: xlint.c,v 1.43 2010/03/22 01:29:30 mrg Exp $");
+__RCSID("$NetBSD: xlint.c,v 1.44 2011/09/18 09:07:35 njoly Exp $");
 #endif
 
 #include <sys/param.h>
@@ -680,7 +680,7 @@
 	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);
 	}

Reply via email to