Date: Fri, 20 Jan 2012 15:43:09 +0000 (UTC) From: Jilles Tjoelker <jilles@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org Subject: svn commit: r230381 - stable/9/usr.bin/xlint/xlint Message-ID: <201201201543.q0KFh9Rh047864@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jilles Date: Fri Jan 20 15:43:08 2012 New Revision: 230381 URL: http://svn.freebsd.org/changeset/base/230381 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/9/usr.bin/xlint/xlint/xlint.c Directory Properties: stable/9/usr.bin/xlint/ (props changed) Modified: stable/9/usr.bin/xlint/xlint/xlint.c ============================================================================== --- stable/9/usr.bin/xlint/xlint/xlint.c Fri Jan 20 14:44:21 2012 (r230380) +++ stable/9/usr.bin/xlint/xlint/xlint.c Fri Jan 20 15:43:08 2012 (r230381) @@ -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?201201201543.q0KFh9Rh047864>