From 86be4d62088e69f06507556227d27cc9565f5dfa Mon Sep 17 00:00:00 2001 From: cgd Date: Fri, 1 Apr 1994 03:29:58 +0000 Subject: [PATCH] long cast --- libexec/rpc.rstatd/rstat_proc.c | 4 ++-- usr.bin/quota/quota.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libexec/rpc.rstatd/rstat_proc.c b/libexec/rpc.rstatd/rstat_proc.c index 7a3937f56fb7..f5417f002bfa 100644 --- a/libexec/rpc.rstatd/rstat_proc.c +++ b/libexec/rpc.rstatd/rstat_proc.c @@ -29,7 +29,7 @@ #ifndef lint /*static char sccsid[] = "from: @(#)rpc.rstatd.c 1.1 86/09/25 Copyr 1984 Sun Micro";*/ /*static char sccsid[] = "from: @(#)rstat_proc.c 2.2 88/08/01 4.0 RPCSRC";*/ -static char rcsid[] = "$Id: rstat_proc.c,v 1.5 1993/12/07 09:09:12 mycroft Exp $"; +static char rcsid[] = "$Id: rstat_proc.c,v 1.6 1994/04/01 03:29:58 cgd Exp $"; #endif /* @@ -113,7 +113,7 @@ kvm_read(off, addr, size) char *addr; { int len; - if (lseek(kmem, (long)off, 0) == -1) + if (lseek(kmem, off, 0) == -1) return(-1); return(read(kmem, addr, size)); } diff --git a/usr.bin/quota/quota.c b/usr.bin/quota/quota.c index d568bbb8d3b7..9f42340b589c 100644 --- a/usr.bin/quota/quota.c +++ b/usr.bin/quota/quota.c @@ -42,7 +42,7 @@ char copyright[] = #ifndef lint /*static char sccsid[] = "from: @(#)quota.c 5.12 (Berkeley) 9/27/90";*/ -static char rcsid[] = "$Id: quota.c,v 1.3 1994/04/01 01:19:21 jtc Exp $"; +static char rcsid[] = "$Id: quota.c,v 1.4 1994/04/01 03:31:37 cgd Exp $"; #endif /* not lint */ /* @@ -428,7 +428,7 @@ getprivs(id, quotatype) free(qup); continue; } - lseek(fd, (long)(id * sizeof(struct dqblk)), L_SET); + lseek(fd, (id * sizeof(struct dqblk)), L_SET); switch (read(fd, &qup->dqblk, sizeof(struct dqblk))) { case 0: /* EOF */ /*