Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/make PR/45383: Henning Petersen: Swapped lseek args



details:   https://anonhg.NetBSD.org/src/rev/e44d3085e4d6
branches:  trunk
changeset: 769743:e44d3085e4d6
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Sep 21 14:30:47 2011 +0000

description:
PR/45383: Henning Petersen: Swapped lseek args

diffstat:

 usr.bin/make/meta.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 32847a947e35 -r e44d3085e4d6 usr.bin/make/meta.c
--- a/usr.bin/make/meta.c       Wed Sep 21 13:05:32 2011 +0000
+++ b/usr.bin/make/meta.c       Wed Sep 21 14:30:47 2011 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: meta.c,v 1.23 2011/09/02 16:26:21 sjg Exp $ */
+/*      $NetBSD: meta.c,v 1.24 2011/09/21 14:30:47 christos Exp $ */
 
 /*
  * Implement 'meta' mode.
@@ -159,7 +159,7 @@
        return;
     }
     /* rewind */
-    lseek(fd, SEEK_SET, 0);
+    (void)lseek(fd, (off_t)0, SEEK_SET);
     if ((fp = fdopen(fd, "r")) == NULL)
        err(1, "Could not read build monitor file '%d'", fd);
 



Home | Main Index | Thread Index | Old Index