diff --git a/usr.bin/lastcomm/Makefile b/usr.bin/lastcomm/Makefile index e5459cfcbc32..04c8fed7bd35 100644 --- a/usr.bin/lastcomm/Makefile +++ b/usr.bin/lastcomm/Makefile @@ -1,7 +1,6 @@ -# $NetBSD: Makefile,v 1.6 2005/03/28 23:33:22 christos Exp $ +# $NetBSD: Makefile,v 1.7 2009/04/12 13:08:31 lukem Exp $ # @(#)Makefile 8.1 (Berkeley) 6/6/93 -WARNS=3 PROG= lastcomm DPADD= ${LIBMATH} LDADD= -lm diff --git a/usr.bin/lastcomm/lastcomm.c b/usr.bin/lastcomm/lastcomm.c index e71b67b124b6..aaea5abf8a71 100644 --- a/usr.bin/lastcomm/lastcomm.c +++ b/usr.bin/lastcomm/lastcomm.c @@ -1,4 +1,4 @@ -/* $NetBSD: lastcomm.c,v 1.20 2008/07/21 14:19:23 lukem Exp $ */ +/* $NetBSD: lastcomm.c,v 1.21 2009/04/12 13:08:31 lukem Exp $ */ /* * Copyright (c) 1980, 1993 @@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1993\ #if 0 static char sccsid[] = "@(#)lastcomm.c 8.2 (Berkeley) 4/29/95"; #endif -__RCSID("$NetBSD: lastcomm.c,v 1.20 2008/07/21 14:19:23 lukem Exp $"); +__RCSID("$NetBSD: lastcomm.c,v 1.21 2009/04/12 13:08:31 lukem Exp $"); #endif /* not lint */ #include @@ -107,7 +107,7 @@ main(int argc, char *argv[]) size = sb.st_size - sb.st_size % sizeof(struct acct); /* Check if any records to display. */ - if (size < sizeof(struct acct)) + if (size < (off_t)sizeof(struct acct)) exit(0); /*