diff options
author | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-10-05 10:49:32 +0000 |
---|---|---|
committer | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-10-05 10:49:32 +0000 |
commit | 8e853dc78094cb7ebf13b154f2a6f0785e44c874 (patch) | |
tree | 1e7b67dcfc7d8db9619d4628af239b8575f9e9ca | |
parent | 295e390fff4a8b585bde599b93e97e0f40e55f92 (diff) |
Make struct_termios_def const
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5424 c046a42c-6fe2-441c-8c8c-71466251a162
-rw-r--r-- | linux-user/syscall.c | 2 | ||||
-rw-r--r-- | thunk.c | 3 | ||||
-rw-r--r-- | thunk.h | 3 |
3 files changed, 5 insertions, 3 deletions
diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 6056a52a55..f7cfea64bd 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -2398,7 +2398,7 @@ static void host_to_target_termios (void *dst, const void *src) target->c_cc[TARGET_VEOL2] = host->c_cc[VEOL2]; } -StructEntry struct_termios_def = { +static const StructEntry struct_termios_def = { .convert = { host_to_target_termios, target_to_host_termios }, .size = { sizeof(struct target_termios), sizeof(struct host_termios) }, .align = { __alignof__(struct target_termios), __alignof__(struct host_termios) }, @@ -113,7 +113,8 @@ void thunk_register_struct(int id, const char *name, const argtype *types) } } -void thunk_register_struct_direct(int id, const char *name, StructEntry *se1) +void thunk_register_struct_direct(int id, const char *name, + const StructEntry *se1) { StructEntry *se; se = struct_entries + id; @@ -68,7 +68,8 @@ typedef struct bitmask_transtbl { } bitmask_transtbl; void thunk_register_struct(int id, const char *name, const argtype *types); -void thunk_register_struct_direct(int id, const char *name, StructEntry *se1); +void thunk_register_struct_direct(int id, const char *name, + const StructEntry *se1); const argtype *thunk_convert(void *dst, const void *src, const argtype *type_ptr, int to_host); #ifndef NO_THUNK_TYPE_SIZE |