Signed-off-by: Karel Zak <kzak@redhat.com>
logindefs.c \
logindefs.h \
$(top_srcdir)/lib/setproctitle.c
+sulogin_SOURCES = \
+ sulogin.c \
+ $(top_srcdir)/lib/strutils.c
vipw_SOURCES = \
vipw.c \
setpwnam.h
#include "c.h"
#include "nls.h"
#include "pathnames.h"
+#include "strutils.h"
-static int timeout;
+static unsigned int timeout;
static int profile;
struct sigaction saved_sigint;
while ((c = getopt_long(argc, argv, "ehpt:V", longopts, NULL)) != -1) {
switch(c) {
case 't':
- timeout = atoi(optarg);
+ timeout = strtoul_or_err(optarg, _("failed to parse timeout"));
break;
case 'p':
profile = 1;