sparse fixup: warning: symbol '...' was not declared. Should it be static?

This commit is contained in:
Sven-Haegar Koch 2011-05-28 03:56:06 +02:00 committed by Guus Sliepen
parent 02e32cf61e
commit d772289f6d
11 changed files with 27 additions and 25 deletions

View file

@ -56,7 +56,7 @@
#include "xalloc.h"
int keylifetime = 0;
int keyexpires = 0;
static int keyexpires = 0;
#ifdef HAVE_LZO
static char lzo_wrkmem[LZO1X_999_MEM_COMPRESS > LZO1X_1_MEM_COMPRESS ? LZO1X_999_MEM_COMPRESS : LZO1X_1_MEM_COMPRESS];
#endif
@ -150,7 +150,7 @@ void send_mtu_probe(node_t *n) {
send_mtu_probe_handler(0, 0, n);
}
void mtu_probe_h(node_t *n, vpn_packet_t *packet, length_t len) {
static void mtu_probe_h(node_t *n, vpn_packet_t *packet, length_t len) {
ifdebug(TRAFFIC) logger(LOG_INFO, "Got MTU probe length %d from %s (%s)", packet->len, n->name, n->hostname);
if(!packet->data[0]) {