summaryrefslogtreecommitdiff
path: root/loginutils
diff options
context:
space:
mode:
authorDenis Vlasenko2007-02-03 17:28:39 +0000
committerDenis Vlasenko2007-02-03 17:28:39 +0000
commit06af2165288cd6516b89001ec9e24992619230e0 (patch)
tree840d22e507465aa6eb27c30c7ab8e80d9c469ae0 /loginutils
parentc7ba8b9d6c926231c1c191136b1ea0bc14b87771 (diff)
downloadbusybox-06af2165288cd6516b89001ec9e24992619230e0.zip
busybox-06af2165288cd6516b89001ec9e24992619230e0.tar.gz
suppress warnings about easch <applet>_main() having
no preceding prototype
Diffstat (limited to 'loginutils')
-rw-r--r--loginutils/addgroup.c1
-rw-r--r--loginutils/adduser.c1
-rw-r--r--loginutils/deluser.c1
-rw-r--r--loginutils/getty.c1
-rw-r--r--loginutils/login.c1
-rw-r--r--loginutils/passwd.c1
-rw-r--r--loginutils/su.c1
-rw-r--r--loginutils/sulogin.c1
-rw-r--r--loginutils/vlock.c1
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;