From 618434e41f00a0ceff9b9204e1c92fbe9e3b91c5 Mon Sep 17 00:00:00 2001 From: christos Date: Wed, 21 Sep 2011 14:33:35 +0000 Subject: [PATCH] PR/45385: Henning Petersen: Swapped arguments in lseek --- usr.bin/gencat/gencat.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/usr.bin/gencat/gencat.c b/usr.bin/gencat/gencat.c index f4dfbc804fe0..6be0485a10b9 100644 --- a/usr.bin/gencat/gencat.c +++ b/usr.bin/gencat/gencat.c @@ -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 #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 @@ main(int argc, char *argv[]) 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 */ }