Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/gencat PR/45385: Henning Petersen: Swapped arguments...
details: https://anonhg.NetBSD.org/src/rev/bea37eede5a9
branches: trunk
changeset: 769745:bea37eede5a9
user: christos <christos%NetBSD.org@localhost>
date: Wed Sep 21 14:33:35 2011 +0000
description:
PR/45385: Henning Petersen: Swapped arguments in lseek
diffstat:
usr.bin/gencat/gencat.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 8dbd2aab7df3 -r bea37eede5a9 usr.bin/gencat/gencat.c
--- a/usr.bin/gencat/gencat.c Wed Sep 21 14:32:14 2011 +0000
+++ b/usr.bin/gencat/gencat.c Wed Sep 21 14:33:35 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: gencat.c,v 1.31 2011/09/04 20:27:05 joerg Exp $ */
+/* $NetBSD: gencat.c,v 1.32 2011/09/21 14:33:35 christos Exp $ */
/*
* Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
#include <sys/cdefs.h>
#if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: gencat.c,v 1.31 2011/09/04 20:27:05 joerg Exp $");
+__RCSID("$NetBSD: gencat.c,v 1.32 2011/09/21 14:33:35 christos Exp $");
#endif
/***********************************************************
@@ -186,7 +186,7 @@
curfile = catfile;
updatecat = 1;
MCReadCat(ofd);
- if (lseek(ofd, SEEK_SET, 0) < 0) {
+ if (lseek(ofd, (off_t)0, SEEK_SET) == (off_t)-1) {
err(1, "Unable to seek on %s", catfile);
/* NOTREACHED */
}
Home |
Main Index |
Thread Index |
Old Index