diff options
author | 2004-09-16 20:11:09 +0000 | |
---|---|---|
committer | 2004-09-16 20:11:09 +0000 | |
commit | 6d3077ccf604af08b28e671860dae506d4f8245c (patch) | |
tree | 7e180aadf0005d29bff74a4cc21174ce47333527 | |
parent | document WRKCONF. (diff) | |
download | wireguard-openbsd-6d3077ccf604af08b28e671860dae506d4f8245c.tar.xz wireguard-openbsd-6d3077ccf604af08b28e671860dae506d4f8245c.zip |
nice off_t cast
-rw-r--r-- | usr.sbin/cron/misc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/cron/misc.c b/usr.sbin/cron/misc.c index 1b895cc3760..1257b01f88f 100644 --- a/usr.sbin/cron/misc.c +++ b/usr.sbin/cron/misc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: misc.c,v 1.33 2004/07/22 16:36:28 millert Exp $ */ +/* $OpenBSD: misc.c,v 1.34 2004/09/16 20:11:09 deraadt Exp $ */ /* Copyright 1988,1990,1993,1994 by Paul Vixie * All rights reserved @@ -22,7 +22,7 @@ */ #if !defined(lint) && !defined(LINT) -static char const rcsid[] = "$OpenBSD: misc.c,v 1.33 2004/07/22 16:36:28 millert Exp $"; +static char const rcsid[] = "$OpenBSD: misc.c,v 1.34 2004/09/16 20:11:09 deraadt Exp $"; #endif /* vix 26jan87 [RCS has the rest of the log] @@ -317,7 +317,7 @@ acquire_daemonlock(int closeflag) { snprintf(buf, sizeof(buf), "%ld\n", (long)getpid()); (void) lseek(fd, (off_t)0, SEEK_SET); num = write(fd, buf, strlen(buf)); - (void) ftruncate(fd, num); + (void) ftruncate(fd, (off_t)num); /* abandon fd even though the file is open. we need to keep * it open and locked, but we don't need the handles elsewhere. |