SCCS-vsn: libexec/comsat/comsat.c 5.11
#endif /* not lint */
#ifndef lint
#endif /* not lint */
#ifndef lint
-static char sccsid[] = "@(#)comsat.c 5.10 (Berkeley) %G%";
+static char sccsid[] = "@(#)comsat.c 5.11 (Berkeley) %G%";
#endif /* not lint */
#include <sys/param.h>
#endif /* not lint */
#include <sys/param.h>
}
}
(void)lseek(uf, 0L, L_SET);
}
}
(void)lseek(uf, 0L, L_SET);
- nutmp = read(uf, utmp, statbf.st_size)/sizeof(struct utmp);
+ nutmp = read(uf, utmp, (int)statbf.st_size)/sizeof(struct utmp);
{
register struct utmp *utp = &utmp[nutmp];
register char *cp;
{
register struct utmp *utp = &utmp[nutmp];
register char *cp;
if (!(cp = index(name, '@')))
return;
if (!(cp = index(name, '@')))
return;
notify(utp, offset)
register struct utmp *utp;
notify(utp, offset)
register struct utmp *utp;
{
static char tty[20] = "/dev/";
struct sgttyb gttybuf;
{
static char tty[20] = "/dev/";
struct sgttyb gttybuf;
jkfprintf(tp, name, offset)
register FILE *tp;
char name[];
jkfprintf(tp, name, offset)
register FILE *tp;
char name[];
{
register char *cp;
register FILE *fi;
{
register char *cp;
register FILE *fi;
if ((fi = fopen(name, "r")) == NULL)
return;
if ((fi = fopen(name, "r")) == NULL)
return;
- (void)fseek(fi, (long)offset, L_SET);
+ (void)fseek(fi, offset, L_SET);
/*
* Print the first 7 lines or 560 characters of the new mail
* (whichever comes first). Skip header crap other than
/*
* Print the first 7 lines or 560 characters of the new mail
* (whichever comes first). Skip header crap other than