]> www.infradead.org Git - users/dwmw2/qemu.git/commitdiff
net: make nb_nics and nd_table[] static in net/net.c xenfv-nic-1
authorDavid Woodhouse <dwmw@amazon.co.uk>
Sun, 22 Oct 2023 15:31:25 +0000 (16:31 +0100)
committerDavid Woodhouse <dwmw@amazon.co.uk>
Sun, 22 Oct 2023 15:31:25 +0000 (16:31 +0100)
Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
include/net/net.h
net/net.c
system/globals.c

index 290e604f0313c6f6609f747e6694f4c0cf712b49..5a38766942e9e7426100e3e3f98d511d36265d25 100644 (file)
@@ -245,10 +245,6 @@ struct NICInfo {
     int nvectors;
 };
 
-extern int nb_nics;
-extern NICInfo nd_table[MAX_NICS];
-extern const char *host_net_devices[];
-
 /* from net.c */
 extern NetClientStateList net_clients;
 bool netdev_is_modern(const char *optstr);
index ed0d63845443e022b2ffed985f7b1dbfc885de18..9043566abf5ed5a7b3ff67f6cb07497e64458978 100644 (file)
--- a/net/net.c
+++ b/net/net.c
@@ -77,6 +77,9 @@ static NetdevQueue nd_queue = QSIMPLEQ_HEAD_INITIALIZER(nd_queue);
 
 static GHashTable *nic_model_help;
 
+static int nb_nics;
+static NICInfo nd_table[MAX_NICS];
+
 /***********************************************************/
 /* network device redirectors */
 
index e83b5428d122f1b4bbc0a542547de31d2e3058c8..b6d4e72530ed187646c8619deee13a017c1fbfc9 100644 (file)
@@ -36,8 +36,6 @@ int display_opengl;
 const char* keyboard_layout;
 bool enable_mlock;
 bool enable_cpu_pm;
-int nb_nics;
-NICInfo nd_table[MAX_NICS];
 int autostart = 1;
 int vga_interface_type = VGA_NONE;
 bool vga_interface_created;