diff options
Diffstat (limited to 'utility.c')
-rw-r--r-- | utility.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -167,7 +167,7 @@ _syscall1(int, sysinfo, struct sysinfo *, info); | |||
167 | #if defined BB_MOUNT || defined BB_UMOUNT | 167 | #if defined BB_MOUNT || defined BB_UMOUNT |
168 | 168 | ||
169 | #ifndef __NR_umount2 | 169 | #ifndef __NR_umount2 |
170 | #define __NR_umount2 52 | 170 | static const int __NR_umount2 = 52; |
171 | #endif | 171 | #endif |
172 | 172 | ||
173 | /* Include our own version of <sys/mount.h>, since libc5 doesn't | 173 | /* Include our own version of <sys/mount.h>, since libc5 doesn't |
@@ -180,7 +180,7 @@ extern _syscall5(int, mount, const char *, special_file, const char *, dir, | |||
180 | 180 | ||
181 | #if defined BB_INSMOD || defined BB_LSMOD | 181 | #if defined BB_INSMOD || defined BB_LSMOD |
182 | #ifndef __NR_query_module | 182 | #ifndef __NR_query_module |
183 | #define __NR_query_module 167 | 183 | static const int __NR_query_module = 167; |
184 | #endif | 184 | #endif |
185 | _syscall5(int, query_module, const char *, name, int, which, | 185 | _syscall5(int, query_module, const char *, name, int, which, |
186 | void *, buf, size_t, bufsize, size_t*, ret); | 186 | void *, buf, size_t, bufsize, size_t*, ret); |
@@ -975,9 +975,9 @@ long my_getpwnamegid(char *name) | |||
975 | #if (defined BB_CHVT) || (defined BB_DEALLOCVT) || (defined BB_SETKEYCODES) | 975 | #if (defined BB_CHVT) || (defined BB_DEALLOCVT) || (defined BB_SETKEYCODES) |
976 | 976 | ||
977 | /* From <linux/kd.h> */ | 977 | /* From <linux/kd.h> */ |
978 | #define KDGKBTYPE 0x4B33 /* get keyboard type */ | 978 | static const int KDGKBTYPE = 0x4B33; /* get keyboard type */ |
979 | #define KB_84 0x01 | 979 | static const int KB_84 = 0x01; |
980 | #define KB_101 0x02 /* this is what we always answer */ | 980 | static const int KB_101 = 0x02; /* this is what we always answer */ |
981 | 981 | ||
982 | int is_a_console(int fd) | 982 | int is_a_console(int fd) |
983 | { | 983 | { |