summaryrefslogtreecommitdiffstats
path: root/src/lastlog.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lastlog.c')
-rw-r--r--src/lastlog.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lastlog.c b/src/lastlog.c
index f5c42be4..3914b72b 100644
--- a/src/lastlog.c
+++ b/src/lastlog.c
@@ -328,7 +328,7 @@ int main (int argc, char **argv)
case 'b':
{
unsigned long inverse_days;
- if (getulong(optarg, &inverse_days) == -1) {
+ if (str2ul(&inverse_days, optarg) == -1) {
fprintf (stderr,
_("%s: invalid numeric argument '%s'\n"),
Prog, optarg);
@@ -356,7 +356,7 @@ int main (int argc, char **argv)
case 't':
{
unsigned long days;
- if (getulong(optarg, &days) == -1) {
+ if (str2ul(&days, optarg) == -1) {
fprintf (stderr,
_("%s: invalid numeric argument '%s'\n"),
Prog, optarg);