diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-06-30 06:24:48 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-06-30 06:24:48 +0000 |
commit | 0311bda24b96581d8b9ab4b2f55b3473f7382197 (patch) | |
tree | 1a38b20dda52c66a825b30021265e477a548df13 /usr.bin/finger | |
parent | 7f0b842b438303c676673d814d15842f2dca2e0f (diff) |
clarify why the long typecast is there
Diffstat (limited to 'usr.bin/finger')
-rw-r--r-- | usr.bin/finger/util.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/finger/util.c b/usr.bin/finger/util.c index 7c991691417..1de5eec6cf6 100644 --- a/usr.bin/finger/util.c +++ b/usr.bin/finger/util.c @@ -1,4 +1,4 @@ -/* $OpenBSD: util.c,v 1.7 1997/06/17 21:00:01 kstailey Exp $ */ +/* $OpenBSD: util.c,v 1.8 1997/06/30 06:24:47 deraadt Exp $ */ /* * Copyright (c) 1989 The Regents of the University of California. @@ -39,7 +39,7 @@ #ifndef lint /*static char sccsid[] = "from: @(#)util.c 5.14 (Berkeley) 1/17/91";*/ -static char rcsid[] = "$OpenBSD: util.c,v 1.7 1997/06/17 21:00:01 kstailey Exp $"; +static char rcsid[] = "$OpenBSD: util.c,v 1.8 1997/06/30 06:24:47 deraadt Exp $"; #endif /* not lint */ #include <sys/types.h> @@ -194,7 +194,7 @@ enter_lastlog(pn) } if (fd == -1 || lseek(fd, (off_t)(pn->uid * sizeof(ll)), SEEK_SET) != - (long)pn->uid * sizeof(ll) || + (long)(pn->uid * sizeof(ll)) || read(fd, (char *)&ll, sizeof(ll)) != sizeof(ll)) { /* as if never logged in */ ll.ll_line[0] = ll.ll_host[0] = '\0'; |