Commit 8e853dc78094cb7ebf13b154f2a6f0785e44c874
1 parent
295e390f
Make struct_termios_def const
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5424 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
3 changed files
with
5 additions
and
3 deletions
linux-user/syscall.c
@@ -2398,7 +2398,7 @@ static void host_to_target_termios (void *dst, const void *src) | @@ -2398,7 +2398,7 @@ static void host_to_target_termios (void *dst, const void *src) | ||
2398 | target->c_cc[TARGET_VEOL2] = host->c_cc[VEOL2]; | 2398 | target->c_cc[TARGET_VEOL2] = host->c_cc[VEOL2]; |
2399 | } | 2399 | } |
2400 | 2400 | ||
2401 | -StructEntry struct_termios_def = { | 2401 | +static const StructEntry struct_termios_def = { |
2402 | .convert = { host_to_target_termios, target_to_host_termios }, | 2402 | .convert = { host_to_target_termios, target_to_host_termios }, |
2403 | .size = { sizeof(struct target_termios), sizeof(struct host_termios) }, | 2403 | .size = { sizeof(struct target_termios), sizeof(struct host_termios) }, |
2404 | .align = { __alignof__(struct target_termios), __alignof__(struct host_termios) }, | 2404 | .align = { __alignof__(struct target_termios), __alignof__(struct host_termios) }, |
thunk.c
@@ -113,7 +113,8 @@ void thunk_register_struct(int id, const char *name, const argtype *types) | @@ -113,7 +113,8 @@ void thunk_register_struct(int id, const char *name, const argtype *types) | ||
113 | } | 113 | } |
114 | } | 114 | } |
115 | 115 | ||
116 | -void thunk_register_struct_direct(int id, const char *name, StructEntry *se1) | 116 | +void thunk_register_struct_direct(int id, const char *name, |
117 | + const StructEntry *se1) | ||
117 | { | 118 | { |
118 | StructEntry *se; | 119 | StructEntry *se; |
119 | se = struct_entries + id; | 120 | se = struct_entries + id; |
thunk.h
@@ -68,7 +68,8 @@ typedef struct bitmask_transtbl { | @@ -68,7 +68,8 @@ typedef struct bitmask_transtbl { | ||
68 | } bitmask_transtbl; | 68 | } bitmask_transtbl; |
69 | 69 | ||
70 | void thunk_register_struct(int id, const char *name, const argtype *types); | 70 | void thunk_register_struct(int id, const char *name, const argtype *types); |
71 | -void thunk_register_struct_direct(int id, const char *name, StructEntry *se1); | 71 | +void thunk_register_struct_direct(int id, const char *name, |
72 | + const StructEntry *se1); | ||
72 | const argtype *thunk_convert(void *dst, const void *src, | 73 | const argtype *thunk_convert(void *dst, const void *src, |
73 | const argtype *type_ptr, int to_host); | 74 | const argtype *type_ptr, int to_host); |
74 | #ifndef NO_THUNK_TYPE_SIZE | 75 | #ifndef NO_THUNK_TYPE_SIZE |