aboutsummaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>2001-09-03 05:06:48 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>2001-09-03 05:06:48 +0000
commit1012cb601c0d9901d20480a11b70c3e93270c51f (patch)
treed2470da398e8bad5c538ca401b470b23e6876710 /libexec
parente41ea1487509c3cc0082cddcc31d10d9c783fb8d (diff)
Notes
Diffstat (limited to 'libexec')
-rw-r--r--libexec/comsat/comsat.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libexec/comsat/comsat.c b/libexec/comsat/comsat.c
index ab920a21f5530..a738762595e5b 100644
--- a/libexec/comsat/comsat.c
+++ b/libexec/comsat/comsat.c
@@ -161,8 +161,8 @@ onalrm(signo)
exit(1);
}
}
- (void)lseek(uf, (off_t)0, L_SET);
- nutmp = read(uf, utmp, (int)statbf.st_size)/sizeof(struct utmp);
+ (void)lseek(uf, (off_t)0, SEEK_SET);
+ nutmp = read(uf, utmp, (size_t)statbf.st_size)/sizeof(struct utmp);
}
}
@@ -181,7 +181,7 @@ mailfor(name)
if (!(cp = strchr(name, '@')))
return;
*cp = '\0';
- offset = atoi(cp + 1);
+ offset = strtoll(cp + 1, NULL, 10);
if (!(cp = strchr(cp + 1, ':')))
file = name;
else
@@ -266,7 +266,7 @@ jkfprintf(tp, user, file, offset)
if ((fi = fopen(file, "r")) == NULL)
return;
- (void)fseek(fi, offset, L_SET);
+ (void)fseeko(fi, offset, SEEK_CUR);
/*
* Print the first 7 lines or 560 characters of the new mail
* (whichever comes first). Skip header crap other than