summaryrefslogtreecommitdiffstats
path: root/login-utils/last.c
diff options
context:
space:
mode:
Diffstat (limited to 'login-utils/last.c')
-rw-r--r--login-utils/last.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/login-utils/last.c b/login-utils/last.c
index f188092c8..276d13abd 100644
--- a/login-utils/last.c
+++ b/login-utils/last.c
@@ -343,6 +343,8 @@ static int list(struct utmp *p, time_t t, int what)
break;
case R_NORMAL:
break;
+ default:
+ abort();
}
/*
@@ -808,6 +810,15 @@ int main(int argc, char **argv)
utmplist = p;
break;
+ case EMPTY:
+ case INIT_PROCESS:
+ case LOGIN_PROCESS:
+ case ACCOUNTING:
+ /* ignored ut_types */
+ break;
+
+ default:
+ warnx("unrecogized ut_type: %d", ut.ut_type);
}
/*