From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KmRBB-0002xr-35 for qemu-devel@nongnu.org; Sun, 05 Oct 2008 06:49:37 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KmRB9-0002xT-Dw for qemu-devel@nongnu.org; Sun, 05 Oct 2008 06:49:35 -0400 Received: from [199.232.76.173] (port=51239 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KmRB9-0002xK-6t for qemu-devel@nongnu.org; Sun, 05 Oct 2008 06:49:35 -0400 Received: from savannah.gnu.org ([199.232.41.3]:46597 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KmRB9-00053X-4X for qemu-devel@nongnu.org; Sun, 05 Oct 2008 06:49:35 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1KmRB7-0001Mg-Ku for qemu-devel@nongnu.org; Sun, 05 Oct 2008 10:49:33 +0000 Received: from blueswir1 by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1KmRB7-0001Mc-5t for qemu-devel@nongnu.org; Sun, 05 Oct 2008 10:49:33 +0000 MIME-Version: 1.0 Errors-To: blueswir1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Blue Swirl Message-Id: Date: Sun, 05 Oct 2008 10:49:33 +0000 Subject: [Qemu-devel] [5424] Make struct_termios_def const Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Revision: 5424 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5424 Author: blueswir1 Date: 2008-10-05 10:49:32 +0000 (Sun, 05 Oct 2008) Log Message: ----------- Make struct_termios_def const Modified Paths: -------------- trunk/linux-user/syscall.c trunk/thunk.c trunk/thunk.h Modified: trunk/linux-user/syscall.c =================================================================== --- trunk/linux-user/syscall.c 2008-10-05 10:30:43 UTC (rev 5423) +++ trunk/linux-user/syscall.c 2008-10-05 10:49:32 UTC (rev 5424) @@ -2398,7 +2398,7 @@ 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) }, Modified: trunk/thunk.c =================================================================== --- trunk/thunk.c 2008-10-05 10:30:43 UTC (rev 5423) +++ trunk/thunk.c 2008-10-05 10:49:32 UTC (rev 5424) @@ -113,7 +113,8 @@ } } -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; Modified: trunk/thunk.h =================================================================== --- trunk/thunk.h 2008-10-05 10:30:43 UTC (rev 5423) +++ trunk/thunk.h 2008-10-05 10:49:32 UTC (rev 5424) @@ -68,7 +68,8 @@ } 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