From owner-svn-src-head@FreeBSD.ORG Sat Nov 5 22:25:15 2011 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C7523106566C; Sat, 5 Nov 2011 22:25:15 +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 B6ED18FC13; Sat, 5 Nov 2011 22:25:15 +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 pA5MPFpQ087304; Sat, 5 Nov 2011 22:25:15 GMT (envelope-from jilles@svn.freebsd.org) Received: (from jilles@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id pA5MPFuR087302; Sat, 5 Nov 2011 22:25:15 GMT (envelope-from jilles@svn.freebsd.org) Message-Id: <201111052225.pA5MPFuR087302@svn.freebsd.org> From: Jilles Tjoelker Date: Sat, 5 Nov 2011 22:25:15 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r227123 - head/usr.bin/xlint/xlint X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Nov 2011 22:25:15 -0000 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 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); }