aboutsummaryrefslogtreecommitdiff
path: root/loginutils
diff options
context:
space:
mode:
Diffstat (limited to 'loginutils')
-rw-r--r--loginutils/addgroup.c2
-rw-r--r--loginutils/adduser.c4
-rw-r--r--loginutils/chpasswd.c2
-rw-r--r--loginutils/cryptpw.c2
-rw-r--r--loginutils/getty.c2
-rw-r--r--loginutils/login.c4
-rw-r--r--loginutils/passwd.c2
-rw-r--r--loginutils/su.c2
-rw-r--r--loginutils/sulogin.c4
-rw-r--r--loginutils/vlock.c6
10 files changed, 15 insertions, 15 deletions
diff --git a/loginutils/addgroup.c b/loginutils/addgroup.c
index 863ccdf72..89414d738 100644
--- a/loginutils/addgroup.c
+++ b/loginutils/addgroup.c
@@ -123,7 +123,7 @@ static void add_user_to_group(char **args,
123 * will add an existing user to an existing group. 123 * will add an existing user to an existing group.
124 */ 124 */
125int addgroup_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 125int addgroup_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
126int addgroup_main(int argc ATTRIBUTE_UNUSED, char **argv) 126int addgroup_main(int argc UNUSED_PARAM, char **argv)
127{ 127{
128 char *group; 128 char *group;
129 gid_t gid = 0; 129 gid_t gid = 0;
diff --git a/loginutils/adduser.c b/loginutils/adduser.c
index cd68015d1..3154806b6 100644
--- a/loginutils/adduser.c
+++ b/loginutils/adduser.c
@@ -56,7 +56,7 @@ static void addgroup_wrapper(struct passwd *p)
56 free(cmd); 56 free(cmd);
57} 57}
58 58
59static void passwd_wrapper(const char *login) ATTRIBUTE_NORETURN; 59static void passwd_wrapper(const char *login) NORETURN;
60 60
61static void passwd_wrapper(const char *login) 61static void passwd_wrapper(const char *login)
62{ 62{
@@ -85,7 +85,7 @@ static const char adduser_longopts[] ALIGN1 =
85 * can be customized via command-line parameters. 85 * can be customized via command-line parameters.
86 */ 86 */
87int adduser_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 87int adduser_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
88int adduser_main(int argc ATTRIBUTE_UNUSED, char **argv) 88int adduser_main(int argc UNUSED_PARAM, char **argv)
89{ 89{
90 struct passwd pw; 90 struct passwd pw;
91 const char *usegroup = NULL; 91 const char *usegroup = NULL;
diff --git a/loginutils/chpasswd.c b/loginutils/chpasswd.c
index 7308596ad..25145fd1c 100644
--- a/loginutils/chpasswd.c
+++ b/loginutils/chpasswd.c
@@ -19,7 +19,7 @@ static const char chpasswd_longopts[] ALIGN1 =
19#define OPT_MD5 2 19#define OPT_MD5 2
20 20
21int chpasswd_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 21int chpasswd_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
22int chpasswd_main(int argc ATTRIBUTE_UNUSED, char **argv) 22int chpasswd_main(int argc UNUSED_PARAM, char **argv)
23{ 23{
24 char *name, *pass; 24 char *name, *pass;
25 char salt[sizeof("$N$XXXXXXXX")]; 25 char salt[sizeof("$N$XXXXXXXX")];
diff --git a/loginutils/cryptpw.c b/loginutils/cryptpw.c
index 901f6fcde..db5d95920 100644
--- a/loginutils/cryptpw.c
+++ b/loginutils/cryptpw.c
@@ -32,7 +32,7 @@ done
32 */ 32 */
33 33
34int cryptpw_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 34int cryptpw_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
35int cryptpw_main(int argc ATTRIBUTE_UNUSED, char **argv) 35int cryptpw_main(int argc UNUSED_PARAM, char **argv)
36{ 36{
37 char salt[sizeof("$N$XXXXXXXX")]; 37 char salt[sizeof("$N$XXXXXXXX")];
38 char *opt_a; 38 char *opt_a;
diff --git a/loginutils/getty.c b/loginutils/getty.c
index 13a8c0c6c..7d4fe4df9 100644
--- a/loginutils/getty.c
+++ b/loginutils/getty.c
@@ -620,7 +620,7 @@ static void update_utmp(const char *line, char *fakehost)
620#endif /* CONFIG_FEATURE_UTMP */ 620#endif /* CONFIG_FEATURE_UTMP */
621 621
622int getty_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 622int getty_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
623int getty_main(int argc ATTRIBUTE_UNUSED, char **argv) 623int getty_main(int argc UNUSED_PARAM, char **argv)
624{ 624{
625 int n; 625 int n;
626 char *fakehost = NULL; /* Fake hostname for ut_host */ 626 char *fakehost = NULL; /* Fake hostname for ut_host */
diff --git a/loginutils/login.c b/loginutils/login.c
index d9a2f8a41..9c7941e0d 100644
--- a/loginutils/login.c
+++ b/loginutils/login.c
@@ -206,7 +206,7 @@ static void motd(void)
206 } 206 }
207} 207}
208 208
209static void alarm_handler(int sig ATTRIBUTE_UNUSED) 209static void alarm_handler(int sig UNUSED_PARAM)
210{ 210{
211 /* This is the escape hatch! Poor serial line users and the like 211 /* This is the escape hatch! Poor serial line users and the like
212 * arrive here when their connection is broken. 212 * arrive here when their connection is broken.
@@ -221,7 +221,7 @@ static void alarm_handler(int sig ATTRIBUTE_UNUSED)
221} 221}
222 222
223int login_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 223int login_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
224int login_main(int argc ATTRIBUTE_UNUSED, char **argv) 224int login_main(int argc UNUSED_PARAM, char **argv)
225{ 225{
226 enum { 226 enum {
227 LOGIN_OPT_f = (1<<0), 227 LOGIN_OPT_f = (1<<0),
diff --git a/loginutils/passwd.c b/loginutils/passwd.c
index 0a31137cf..84e5aeb6d 100644
--- a/loginutils/passwd.c
+++ b/loginutils/passwd.c
@@ -71,7 +71,7 @@ static char* new_password(const struct passwd *pw, uid_t myuid, int algo)
71} 71}
72 72
73int passwd_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 73int passwd_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
74int passwd_main(int argc ATTRIBUTE_UNUSED, char **argv) 74int passwd_main(int argc UNUSED_PARAM, char **argv)
75{ 75{
76 enum { 76 enum {
77 OPT_algo = 0x1, /* -a - password algorithm */ 77 OPT_algo = 0x1, /* -a - password algorithm */
diff --git a/loginutils/su.c b/loginutils/su.c
index 1a35f0e4f..61039d823 100644
--- a/loginutils/su.c
+++ b/loginutils/su.c
@@ -12,7 +12,7 @@
12#define SU_OPT_l (4) 12#define SU_OPT_l (4)
13 13
14int su_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 14int su_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
15int su_main(int argc ATTRIBUTE_UNUSED, char **argv) 15int su_main(int argc UNUSED_PARAM, char **argv)
16{ 16{
17 unsigned flags; 17 unsigned flags;
18 char *opt_shell = NULL; 18 char *opt_shell = NULL;
diff --git a/loginutils/sulogin.c b/loginutils/sulogin.c
index 38812a6cc..bfd42569a 100644
--- a/loginutils/sulogin.c
+++ b/loginutils/sulogin.c
@@ -8,14 +8,14 @@
8#include "libbb.h" 8#include "libbb.h"
9#include <syslog.h> 9#include <syslog.h>
10 10
11//static void catchalarm(int ATTRIBUTE_UNUSED junk) 11//static void catchalarm(int UNUSED_PARAM junk)
12//{ 12//{
13// exit(EXIT_FAILURE); 13// exit(EXIT_FAILURE);
14//} 14//}
15 15
16 16
17int sulogin_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 17int sulogin_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
18int sulogin_main(int argc ATTRIBUTE_UNUSED, char **argv) 18int sulogin_main(int argc UNUSED_PARAM, char **argv)
19{ 19{
20 char *cp; 20 char *cp;
21 int timeout = 0; 21 int timeout = 0;
diff --git a/loginutils/vlock.c b/loginutils/vlock.c
index 3ce40dd62..442272a05 100644
--- a/loginutils/vlock.c
+++ b/loginutils/vlock.c
@@ -18,21 +18,21 @@
18#include <sys/vt.h> 18#include <sys/vt.h>
19#include "libbb.h" 19#include "libbb.h"
20 20
21static void release_vt(int signo ATTRIBUTE_UNUSED) 21static void release_vt(int signo UNUSED_PARAM)
22{ 22{
23 /* If -a, param is 0, which means: 23 /* If -a, param is 0, which means:
24 * "no, kernel, we don't allow console switch away from us!" */ 24 * "no, kernel, we don't allow console switch away from us!" */
25 ioctl(STDIN_FILENO, VT_RELDISP, (unsigned long) !option_mask32); 25 ioctl(STDIN_FILENO, VT_RELDISP, (unsigned long) !option_mask32);
26} 26}
27 27
28static void acquire_vt(int signo ATTRIBUTE_UNUSED) 28static void acquire_vt(int signo UNUSED_PARAM)
29{ 29{
30 /* ACK to kernel that switch to console is successful */ 30 /* ACK to kernel that switch to console is successful */
31 ioctl(STDIN_FILENO, VT_RELDISP, VT_ACKACQ); 31 ioctl(STDIN_FILENO, VT_RELDISP, VT_ACKACQ);
32} 32}
33 33
34int vlock_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 34int vlock_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
35int vlock_main(int argc ATTRIBUTE_UNUSED, char **argv) 35int vlock_main(int argc UNUSED_PARAM, char **argv)
36{ 36{
37 struct vt_mode vtm; 37 struct vt_mode vtm;
38 struct termios term; 38 struct termios term;