From 239b2d7bee175d038f0ab57eb229943f8c6213da Mon Sep 17 00:00:00 2001 From: nekral-guest Date: Sat, 5 Jan 2008 13:51:43 +0000 Subject: [PATCH] Make a proper prototype for the main() function declaration. (add void) --- ChangeLog | 2 ++ src/nologin.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 3efa3b0a..a81911fa 100644 --- a/ChangeLog +++ b/ChangeLog @@ -19,6 +19,8 @@ * src/chage.c: Define isnum() as static and add its prototype. * libmisc/xgetspnam.c: Add missing include "shadowio.h". (This was OK as long as prototypes.h included this file.) + * src/nologin.c: Make a proper prototype for the main() function + declaration. (add void) 2008-01-01 Nicolas François diff --git a/src/nologin.c b/src/nologin.c index 3fa7edb4..3c836262 100644 --- a/src/nologin.c +++ b/src/nologin.c @@ -30,7 +30,7 @@ #include #include "exitcodes.h" -int main () +int main (void) { const char *user, *tty;