diff options
author | tron <tron@openttd.org> | 2005-12-24 20:51:21 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-12-24 20:51:21 +0000 |
commit | 255c4052b2015149515908f0f0b00ea14a76bc99 (patch) | |
tree | 8947fcf5f0c55c12cf64a375b8e7a6c54ea2dd19 | |
parent | 849fff602da7a77fd21dbcd478d86ee8ed1cf5e1 (diff) | |
download | openttd-255c4052b2015149515908f0f0b00ea14a76bc99.tar.xz |
(svn r3337) Remove an unused variable and add 2 times static
-rw-r--r-- | network_udp.c | 2 | ||||
-rw-r--r-- | signs.c | 2 | ||||
-rw-r--r-- | signs.h | 2 | ||||
-rw-r--r-- | terraform_gui.c | 1 |
4 files changed, 3 insertions, 4 deletions
diff --git a/network_udp.c b/network_udp.c index 28e5a0301..1e369d42c 100644 --- a/network_udp.c +++ b/network_udp.c @@ -43,7 +43,7 @@ enum { #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) { @@ -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 */ @@ -51,8 +51,6 @@ static inline bool IsSignIndex(uint index) #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; diff --git a/terraform_gui.c b/terraform_gui.c index 8b04caf2a..7113b6dd0 100644 --- a/terraform_gui.c +++ b/terraform_gui.c @@ -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" |