diff options
Diffstat (limited to 'loginutils/vlock.c')
-rw-r--r-- | loginutils/vlock.c | 6 |
1 files changed, 3 insertions, 3 deletions
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 | ||
21 | static void release_vt(int signo ATTRIBUTE_UNUSED) | 21 | static 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 | ||
28 | static void acquire_vt(int signo ATTRIBUTE_UNUSED) | 28 | static 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 | ||
34 | int vlock_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 34 | int vlock_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
35 | int vlock_main(int argc ATTRIBUTE_UNUSED, char **argv) | 35 | int 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; |