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] [5363] Add some missing static qualifiers
Date: Tue, 30 Sep 2008 18:18:27 +0000	[thread overview]
Message-ID: <E1Kkjnn-0001dM-KA@cvs.savannah.gnu.org> (raw)

Revision: 5363
          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5363
Author:   blueswir1
Date:     2008-09-30 18:18:27 +0000 (Tue, 30 Sep 2008)

Log Message:
-----------
Add some missing static qualifiers

Modified Paths:
--------------
    trunk/curses_keys.h
    trunk/hw/e1000.c
    trunk/slirp/if.c
    trunk/vl.c

Modified: trunk/curses_keys.h
===================================================================
--- trunk/curses_keys.h	2008-09-30 18:16:09 UTC (rev 5362)
+++ trunk/curses_keys.h	2008-09-30 18:18:27 UTC (rev 5363)
@@ -37,7 +37,7 @@
 
 #define CURSES_KEYS         KEY_MAX     /* KEY_MAX defined in <curses.h> */
 
-int curses2keycode[CURSES_KEYS] = {
+static int curses2keycode[CURSES_KEYS] = {
     [0 ... (CURSES_KEYS - 1)] = -1,
 
     [0x01b] = 1, /* Escape */
@@ -216,7 +216,7 @@
 
 };
 
-int curses2keysym[CURSES_KEYS] = {
+static int curses2keysym[CURSES_KEYS] = {
     [0 ... (CURSES_KEYS - 1)] = -1,
 
     ['\n'] = '\n',

Modified: trunk/hw/e1000.c
===================================================================
--- trunk/hw/e1000.c	2008-09-30 18:16:09 UTC (rev 5362)
+++ trunk/hw/e1000.c	2008-09-30 18:18:27 UTC (rev 5363)
@@ -783,7 +783,7 @@
             (8 * (addr & 3))) & 0xffff;
 }
 
-int mac_regtosave[] = {
+static int mac_regtosave[] = {
     CTRL,	EECD,	EERD,	GPRC,	GPTC,	ICR,	ICS,	IMC,	IMS,
     LEDCTL,	MANC,	MDIC,	MPC,	PBA,	RCTL,	RDBAH,	RDBAL,	RDH,
     RDLEN,	RDT,	STATUS,	SWSM,	TCTL,	TDBAH,	TDBAL,	TDH,	TDLEN,
@@ -791,7 +791,7 @@
 };
 enum { MAC_NSAVE = sizeof mac_regtosave/sizeof *mac_regtosave };
 
-struct {
+static struct {
     int size;
     int array0;
 } mac_regarraystosave[] = { {32, RA}, {128, MTA} };

Modified: trunk/slirp/if.c
===================================================================
--- trunk/slirp/if.c	2008-09-30 18:16:09 UTC (rev 5362)
+++ trunk/slirp/if.c	2008-09-30 18:18:27 UTC (rev 5363)
@@ -15,7 +15,7 @@
 
 #define ifs_init(ifm) ((ifm)->ifs_next = (ifm)->ifs_prev = (ifm))
 
-void
+static void
 ifs_insque(struct mbuf *ifm, struct mbuf *ifmhead)
 {
 	ifm->ifs_next = ifmhead->ifs_next;
@@ -24,7 +24,7 @@
 	ifm->ifs_next->ifs_prev = ifm;
 }
 
-void
+static void
 ifs_remque(struct mbuf *ifm)
 {
 	ifm->ifs_prev->ifs_next = ifm->ifs_next;

Modified: trunk/vl.c
===================================================================
--- trunk/vl.c	2008-09-30 18:16:09 UTC (rev 5362)
+++ trunk/vl.c	2008-09-30 18:18:27 UTC (rev 5363)
@@ -5375,7 +5375,7 @@
 } *first_bt_vlan;
 
 /* find or alloc a new bluetooth "VLAN" */
-struct bt_scatternet_s *qemu_find_bt_vlan(int id)
+static struct bt_scatternet_s *qemu_find_bt_vlan(int id)
 {
     struct bt_vlan_s **pvlan, *vlan;
     for (vlan = first_bt_vlan; vlan != NULL; vlan = vlan->next) {
@@ -6360,7 +6360,7 @@
     return 0;
 }
 
-QEMUFile *qemu_fopen_bdrv(BlockDriverState *bs, int64_t offset, int is_writable)
+static QEMUFile *qemu_fopen_bdrv(BlockDriverState *bs, int64_t offset, int is_writable)
 {
     QEMUFileBdrv *s;
 

                 reply	other threads:[~2008-09-30 18:18 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=E1Kkjnn-0001dM-KA@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).