From owner-svn-src-stable-8@FreeBSD.ORG Fri Jan 20 15:44:39 2012 Return-Path: Delivered-To: svn-src-stable-8@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BE71B106566B; Fri, 20 Jan 2012 15:44:39 +0000 (UTC) (envelope-from jilles@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id A7DBC8FC13; Fri, 20 Jan 2012 15:44:39 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q0KFidmc047971; Fri, 20 Jan 2012 15:44:39 GMT (envelope-from jilles@svn.freebsd.org) Received: (from jilles@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q0KFid0m047969; Fri, 20 Jan 2012 15:44:39 GMT (envelope-from jilles@svn.freebsd.org) Message-Id: <201201201544.q0KFid0m047969@svn.freebsd.org> From: Jilles Tjoelker Date: Fri, 20 Jan 2012 15:44:39 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org X-SVN-Group: stable-8 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r230382 - stable/8/usr.bin/xlint/xlint X-BeenThere: svn-src-stable-8@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for only the 8-stable src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Jan 2012 15:44:39 -0000 Author: jilles Date: Fri Jan 20 15:44:39 2012 New Revision: 230382 URL: http://svn.freebsd.org/changeset/base/230382 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 Obtained from: NetBSD Modified: stable/8/usr.bin/xlint/xlint/xlint.c Directory Properties: stable/8/usr.bin/xlint/ (props changed) Modified: stable/8/usr.bin/xlint/xlint/xlint.c ============================================================================== --- stable/8/usr.bin/xlint/xlint/xlint.c Fri Jan 20 15:43:08 2012 (r230381) +++ stable/8/usr.bin/xlint/xlint/xlint.c Fri Jan 20 15:44:39 2012 (r230382) @@ -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); }