]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
Make struct_termios_def const
authorblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>
Sun, 5 Oct 2008 10:49:32 +0000 (10:49 +0000)
committerblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>
Sun, 5 Oct 2008 10:49:32 +0000 (10:49 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5424 c046a42c-6fe2-441c-8c8c-71466251a162

linux-user/syscall.c
thunk.c
thunk.h

index 6056a52a5513fd731f3c90ecea2ab6c9cab45e7a..f7cfea64bdc761a54b76e01b13d1465cf5d4c338 100644 (file)
@@ -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) },
diff --git a/thunk.c b/thunk.c
index 7331aeb477d7f8fe124317e221fc3199b171d9ba..04f5f869c49316890a2706ff9c5a4ea86a2989d4 100644 (file)
--- a/thunk.c
+++ b/thunk.c
@@ -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;
diff --git a/thunk.h b/thunk.h
index d650fa4c1352427d44fb93b5d1b586484c43defb..017a3278bd9ce91132e114231770dbe5d7998666 100644 (file)
--- a/thunk.h
+++ b/thunk.h
@@ -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