From: nekral-guest Date: Sat, 5 Jan 2008 13:51:43 +0000 (+0000) Subject: Make a proper prototype for the main() function declaration. (add void) X-Git-Tag: 4.1.1~144 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=239b2d7bee175d038f0ab57eb229943f8c6213da;p=thirdparty%2Fshadow.git Make a proper prototype for the main() function declaration. (add void) --- diff --git a/ChangeLog b/ChangeLog index 3efa3b0ab..a81911fa8 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 3fa7edb40..3c8362629 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;