qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Blue Swirl <blauwirbel@gmail.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [5424] Make struct_termios_def const
Date: Sun, 05 Oct 2008 10:49:33 +0000	[thread overview]
Message-ID: <E1KmRB7-0001Mc-5t@cvs.savannah.gnu.org> (raw)

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

                 reply	other threads:[~2008-10-05 10:49 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1KmRB7-0001Mc-5t@cvs.savannah.gnu.org \
    --to=blauwirbel@gmail.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).