NetBSD-Bugs archive

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

bin/45383: Swapped arguments in meta.c



>Number:         45383
>Category:       bin
>Synopsis:       Swapped arguments in meta.c
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Sep 21 12:30:00 +0000 2011
>Originator:     Henning Petersen
>Release:        NetBSD-current
>Organization:
>Environment:
>Description:
Swapped arguments in lseek make/meta.c
>How-To-Repeat:

>Fix:
diff -u -r1.23 meta.c
--- usr.bin/make/meta.c 2 Sep 2011 16:26:21 -0000       1.23
+++ usr.bin/make/meta.c 21 Sep 2011 08:41:49 -0000
@@ -159,7 +159,7 @@
        return;
     }
     /* rewind */
-    lseek(fd, SEEK_SET, 0);
+    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