(svn r3337) Remove an unused variable and add 2 times static
authortron
Sat, 24 Dec 2005 20:51:21 +0000
changeset 2789 12a6b123f12c
parent 2788 0187c588107e
child 2790 f99251c8e48a
(svn r3337) Remove an unused variable and add 2 times static
network_udp.c
signs.c
signs.h
terraform_gui.c
--- a/network_udp.c	Sat Dec 24 15:01:17 2005 +0000
+++ b/network_udp.c	Sat Dec 24 20:51:21 2005 +0000
@@ -43,7 +43,7 @@
 #define DEF_UDP_RECEIVE_COMMAND(type) void NetworkPacketReceive_ ## type ## _command(Packet *p, struct sockaddr_in *client_addr)
 void NetworkSendUDP_Packet(SOCKET udp, Packet *p, struct sockaddr_in *recv);
 
-NetworkClientState _udp_cs;
+static NetworkClientState _udp_cs;
 
 DEF_UDP_RECEIVE_COMMAND(PACKET_UDP_CLIENT_FIND_SERVER)
 {
--- a/signs.c	Sat Dec 24 15:01:17 2005 +0000
+++ b/signs.c	Sat Dec 24 20:51:21 2005 +0000
@@ -10,6 +10,8 @@
 #include "command.h"
 #include "variables.h"
 
+static SignStruct *_new_sign_struct;
+
 enum {
 	/* Max signs: 64000 (4 * 16000) */
 	SIGN_POOL_BLOCK_SIZE_BITS = 2,       /* In bits, so (1 << 2) == 4 */
--- a/signs.h	Sat Dec 24 15:01:17 2005 +0000
+++ b/signs.h	Sat Dec 24 20:51:21 2005 +0000
@@ -51,8 +51,6 @@
 #define FOR_ALL_SIGNS_FROM(ss, start) for (ss = GetSign(start); ss != NULL; ss = (ss->index + 1 < GetSignPoolSize()) ? GetSign(ss->index + 1) : NULL)
 #define FOR_ALL_SIGNS(ss) FOR_ALL_SIGNS_FROM(ss, 0)
 
-VARDEF SignStruct *_new_sign_struct;
-
 VARDEF bool _sign_sort_dirty;
 VARDEF uint16 *_sign_sort;
 
--- a/terraform_gui.c	Sat Dec 24 15:01:17 2005 +0000
+++ b/terraform_gui.c	Sat Dec 24 20:51:21 2005 +0000
@@ -10,7 +10,6 @@
 #include "window.h"
 #include "gui.h"
 #include "viewport.h"
-#include "gfx.h"
 #include "sound.h"
 #include "command.h"
 #include "vehicle.h"