diff options
Diffstat (limited to 'init')
-rw-r--r-- | init/init.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/init/init.c b/init/init.c index 0e9b74195..ac0f72bfc 100644 --- a/init/init.c +++ b/init/init.c | |||
@@ -56,7 +56,7 @@ struct vt_stat { | |||
56 | unsigned short v_signal; /* signal to send */ | 56 | unsigned short v_signal; /* signal to send */ |
57 | unsigned short v_state; /* vt bitmask */ | 57 | unsigned short v_state; /* vt bitmask */ |
58 | }; | 58 | }; |
59 | #define VT_GETSTATE 0x5603 /* get global vt state info */ | 59 | static const int VT_GETSTATE = 0x5603; /* get global vt state info */ |
60 | 60 | ||
61 | /* From <linux/serial.h> */ | 61 | /* From <linux/serial.h> */ |
62 | struct serial_struct { | 62 | struct serial_struct { |
@@ -79,11 +79,11 @@ struct serial_struct { | |||
79 | 79 | ||
80 | 80 | ||
81 | #ifndef RB_HALT_SYSTEM | 81 | #ifndef RB_HALT_SYSTEM |
82 | #define RB_HALT_SYSTEM 0xcdef0123 | 82 | static const int RB_HALT_SYSTEM = 0xcdef0123; |
83 | #define RB_ENABLE_CAD 0x89abcdef | 83 | static const int RB_ENABLE_CAD = 0x89abcdef; |
84 | #define RB_DISABLE_CAD 0 | 84 | static const int RB_DISABLE_CAD = 0; |
85 | #define RB_POWER_OFF 0x4321fedc | 85 | #define RB_POWER_OFF 0x4321fedc |
86 | #define RB_AUTOBOOT 0x01234567 | 86 | static const int RB_AUTOBOOT = 0x01234567; |
87 | #if defined(__GLIBC__) || defined (__UCLIBC__) | 87 | #if defined(__GLIBC__) || defined (__UCLIBC__) |
88 | #include <sys/reboot.h> | 88 | #include <sys/reboot.h> |
89 | #define init_reboot(magic) reboot(magic) | 89 | #define init_reboot(magic) reboot(magic) |
@@ -131,8 +131,8 @@ static _syscall2(int, bdflush, int, func, int, data); | |||
131 | #define INIT_SCRIPT "/etc/init.d/rcS" /* Default sysinit script. */ | 131 | #define INIT_SCRIPT "/etc/init.d/rcS" /* Default sysinit script. */ |
132 | #endif | 132 | #endif |
133 | 133 | ||
134 | #define LOG 0x1 | 134 | static const int LOG = 0x1; |
135 | #define CONSOLE 0x2 | 135 | static const int CONSOLE = 0x2; |
136 | 136 | ||
137 | /* Allowed init action types */ | 137 | /* Allowed init action types */ |
138 | typedef enum { | 138 | typedef enum { |