Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 5 Nov 2011 22:25:15 +0000 (UTC)
From:      Jilles Tjoelker <jilles@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r227123 - head/usr.bin/xlint/xlint
Message-ID:  <201111052225.pA5MPFuR087302@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jilles
Date: Sat Nov  5 22:25:15 2011
New Revision: 227123
URL: http://svn.freebsd.org/changeset/base/227123

Log:
  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:
  head/usr.bin/xlint/xlint/xlint.c

Modified: head/usr.bin/xlint/xlint/xlint.c
==============================================================================
--- head/usr.bin/xlint/xlint/xlint.c	Sat Nov  5 21:56:45 2011	(r227122)
+++ head/usr.bin/xlint/xlint/xlint.c	Sat Nov  5 22:25:15 2011	(r227123)
@@ -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);
 	}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201111052225.pA5MPFuR087302>