Skip to content

Commit

Permalink
Make struct_termios_def const
Browse files Browse the repository at this point in the history
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5424 c046a42c-6fe2-441c-8c8c-71466251a162
  • Loading branch information
blueswir1 committed Oct 5, 2008
1 parent 295e390 commit 8e853dc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion linux-user/syscall.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) },
Expand Down
3 changes: 2 additions & 1 deletion thunk.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 2 additions & 1 deletion thunk.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8e853dc

Please sign in to comment.