Commit 9f106a75dec42e9e619635a729d4a3c5d8c73e11

Authored by blueswir1
1 parent b39bc503

Make ioctl table static

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5426 c046a42c-6fe2-441c-8c8c-71466251a162
darwin-user/syscall.c
@@ -654,7 +654,7 @@ typedef struct IOCTLEntry { @@ -654,7 +654,7 @@ typedef struct IOCTLEntry {
654 654
655 #define MAX_STRUCT_SIZE 4096 655 #define MAX_STRUCT_SIZE 4096
656 656
657 -IOCTLEntry ioctl_entries[] = { 657 +static IOCTLEntry ioctl_entries[] = {
658 #define IOCTL(cmd, access, types...) \ 658 #define IOCTL(cmd, access, types...) \
659 { cmd, cmd, #cmd, access, { types } }, 659 { cmd, cmd, #cmd, access, { types } },
660 #include "ioctls.h" 660 #include "ioctls.h"
linux-user/syscall.c
@@ -2139,7 +2139,7 @@ typedef struct IOCTLEntry { @@ -2139,7 +2139,7 @@ typedef struct IOCTLEntry {
2139 2139
2140 #define MAX_STRUCT_SIZE 4096 2140 #define MAX_STRUCT_SIZE 4096
2141 2141
2142 -IOCTLEntry ioctl_entries[] = { 2142 +static IOCTLEntry ioctl_entries[] = {
2143 #define IOCTL(cmd, access, types...) \ 2143 #define IOCTL(cmd, access, types...) \
2144 { TARGET_ ## cmd, cmd, #cmd, access, { types } }, 2144 { TARGET_ ## cmd, cmd, #cmd, access, { types } },
2145 #include "ioctls.h" 2145 #include "ioctls.h"