diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2006-04-02 00:48:56 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2006-04-02 00:48:56 +0000 |
commit | b4f316147600b29b68c7b4a1440753be2e4d4d85 (patch) | |
tree | 7c623297181a97d02ea7c873b1e8df34f28d55da /libexec/uucpd | |
parent | b790821253b18e5408519e221871f17f7debaee8 (diff) |
use SEEK_* for lseek()
Diffstat (limited to 'libexec/uucpd')
-rw-r--r-- | libexec/uucpd/uucpd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libexec/uucpd/uucpd.c b/libexec/uucpd/uucpd.c index c9400fad567..54bfc33e4ba 100644 --- a/libexec/uucpd/uucpd.c +++ b/libexec/uucpd/uucpd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uucpd.c,v 1.30 2005/04/13 02:33:09 deraadt Exp $ */ +/* $OpenBSD: uucpd.c,v 1.31 2006/04/02 00:48:55 deraadt Exp $ */ /* * Copyright (c) 1985 The Regents of the University of California. @@ -40,7 +40,7 @@ char copyright[] = #ifndef lint /*static char sccsid[] = "from: @(#)uucpd.c 5.10 (Berkeley) 2/26/91";*/ -static char rcsid[] = "$OpenBSD: uucpd.c,v 1.30 2005/04/13 02:33:09 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: uucpd.c,v 1.31 2006/04/02 00:48:55 deraadt Exp $"; #endif /* not lint */ /* @@ -298,7 +298,7 @@ dologin(struct passwd *pw, struct sockaddr *sa) struct lastlog ll; time(&ll.ll_time); - lseek(f, pw->pw_uid * sizeof(struct lastlog), 0); + lseek(f, pw->pw_uid * sizeof(struct lastlog), SEEK_SET); SCPYN(ll.ll_line, hbuf); SCPYN(ll.ll_host, hbuf); (void) write(f, (char *) &ll, sizeof ll); |