svn commit: r230383 - stable/7/usr.bin/xlint/xlint

Jilles Tjoelker jilles at FreeBSD.org
Fri Jan 20 15:46:47 UTC 2012


Author: jilles
Date: Fri Jan 20 15:46:46 2012
New Revision: 230383
URL: http://svn.freebsd.org/changeset/base/230383

Log:
  MFC r227123: 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

Modified:
  stable/7/usr.bin/xlint/xlint/xlint.c
Directory Properties:
  stable/7/usr.bin/xlint/   (props changed)

Modified: stable/7/usr.bin/xlint/xlint/xlint.c
==============================================================================
--- stable/7/usr.bin/xlint/xlint/xlint.c	Fri Jan 20 15:44:39 2012	(r230382)
+++ stable/7/usr.bin/xlint/xlint/xlint.c	Fri Jan 20 15:46:46 2012	(r230383)
@@ -655,7 +655,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);
 	}


More information about the svn-src-stable-7 mailing list