diff options
Diffstat (limited to 'loginutils')
-rw-r--r-- | loginutils/addgroup.c | 1 | ||||
-rw-r--r-- | loginutils/adduser.c | 1 | ||||
-rw-r--r-- | loginutils/deluser.c | 1 | ||||
-rw-r--r-- | loginutils/getty.c | 1 | ||||
-rw-r--r-- | loginutils/login.c | 1 | ||||
-rw-r--r-- | loginutils/passwd.c | 1 | ||||
-rw-r--r-- | loginutils/su.c | 1 | ||||
-rw-r--r-- | loginutils/sulogin.c | 1 | ||||
-rw-r--r-- | loginutils/vlock.c | 1 |
9 files changed, 9 insertions, 0 deletions
diff --git a/loginutils/addgroup.c b/loginutils/addgroup.c index 0172e60..768d2c0 100644 --- a/loginutils/addgroup.c +++ b/loginutils/addgroup.c @@ -84,6 +84,7 @@ static int addgroup(char *group, gid_t gid, const char *user) * * can be customized via command-line parameters. * ________________________________________________________________________ */ +int addgroup_main(int argc, char **argv); int addgroup_main(int argc, char **argv) { char *group; diff --git a/loginutils/adduser.c b/loginutils/adduser.c index 5a48e9c..8193aea 100644 --- a/loginutils/adduser.c +++ b/loginutils/adduser.c @@ -158,6 +158,7 @@ static int adduser(struct passwd *p, unsigned long flags) * * can be customized via command-line parameters. */ +int adduser_main(int argc, char **argv); int adduser_main(int argc, char **argv) { struct passwd pw; diff --git a/loginutils/deluser.c b/loginutils/deluser.c index 034ab94..e9bde00 100644 --- a/loginutils/deluser.c +++ b/loginutils/deluser.c @@ -61,6 +61,7 @@ static void del_line_matching(const char *login, const char *filename) } } +int deluser_main(int argc, char **argv); int deluser_main(int argc, char **argv) { if (argc != 2) diff --git a/loginutils/getty.c b/loginutils/getty.c index 8f81caf..64d2d08 100644 --- a/loginutils/getty.c +++ b/loginutils/getty.c @@ -711,6 +711,7 @@ static void update_utmp(const char *line) #endif /* SYSV_STYLE */ +int getty_main(int argc, char **argv); int getty_main(int argc, char **argv) { int nullfd; diff --git a/loginutils/login.c b/loginutils/login.c index 94bb0dd..a19191b 100644 --- a/loginutils/login.c +++ b/loginutils/login.c @@ -211,6 +211,7 @@ static void alarm_handler(int sig ATTRIBUTE_UNUSED) exit(EXIT_SUCCESS); } +int login_main(int argc, char **argv); int login_main(int argc, char **argv) { enum { diff --git a/loginutils/passwd.c b/loginutils/passwd.c index ab20f28..4531e63 100644 --- a/loginutils/passwd.c +++ b/loginutils/passwd.c @@ -229,6 +229,7 @@ static int update_passwd(const char *filename, const char *username, } +int passwd_main(int argc, char **argv); int passwd_main(int argc, char **argv) { enum { diff --git a/loginutils/su.c b/loginutils/su.c index 9a134dd..0a786cb 100644 --- a/loginutils/su.c +++ b/loginutils/su.c @@ -11,6 +11,7 @@ #define SU_OPT_mp (3) #define SU_OPT_l (4) +int su_main(int argc, char **argv); int su_main(int argc, char **argv) { unsigned flags; diff --git a/loginutils/sulogin.c b/loginutils/sulogin.c index 8bcb393..8e3095c 100644 --- a/loginutils/sulogin.c +++ b/loginutils/sulogin.c @@ -34,6 +34,7 @@ static void catchalarm(int ATTRIBUTE_UNUSED junk) } +int sulogin_main(int argc, char **argv); int sulogin_main(int argc, char **argv) { char *cp; diff --git a/loginutils/vlock.c b/loginutils/vlock.c index 7cc812f..06a7169 100644 --- a/loginutils/vlock.c +++ b/loginutils/vlock.c @@ -41,6 +41,7 @@ static void restore_terminal(void) tcsetattr(STDIN_FILENO, TCSANOW, &oterm); } +int vlock_main(int argc, char **argv); int vlock_main(int argc, char **argv) { sigset_t sig; |