summaryrefslogtreecommitdiff
path: root/loginutils/vlock.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-07-05 09:18:54 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-07-05 09:18:54 +0000
commita60f84ebf07863e390b72a2b6150e461a1ec18e9 (patch)
treef59bc665cfe3d2d32622450d80523e3c1265e501 /loginutils/vlock.c
parentf6efccc0659a2e2978f2021153f34ce92257ad2b (diff)
downloadbusybox-w32-a60f84ebf07863e390b72a2b6150e461a1ec18e9.tar.gz
busybox-w32-a60f84ebf07863e390b72a2b6150e461a1ec18e9.tar.bz2
busybox-w32-a60f84ebf07863e390b72a2b6150e461a1ec18e9.zip
*: rename ATTRIBUTE_XXX to just XXX.
Diffstat (limited to 'loginutils/vlock.c')
-rw-r--r--loginutils/vlock.c6
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
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;