From 1725ab720b56a94f895528a8aa89fe054ae9136d Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Wed, 5 Jun 2013 01:42:06 +0200 Subject: Remove useless initializations to 0 or NULL. They only inflate the .data section of the binary. Initializations to FALSE are still left to do. Signed-off-by: Ralf Baechle --- ax25ipd/ax25ipd.c | 8 ++++---- ax25rtd/ax25rtd.c | 8 ++++---- call/call.c | 10 +++++----- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/ax25ipd/ax25ipd.c b/ax25ipd/ax25ipd.c index 461147d..4888c07 100644 --- a/ax25ipd/ax25ipd.c +++ b/ax25ipd/ax25ipd.c @@ -28,10 +28,10 @@ jmp_buf restart_env; /* Prototypes */ void hupper(int); -int opt_version = 0; -int opt_loglevel = 0; -int opt_nofork = 0; -int opt_help = 0; +int opt_version; +int opt_loglevel; +int opt_nofork; +int opt_help; char opt_configfile[PATH_MAX]; char opt_ttydevice[PATH_MAX]; diff --git a/ax25rtd/ax25rtd.c b/ax25rtd/ax25rtd.c index 5a7dca1..5b40228 100644 --- a/ax25rtd/ax25rtd.c +++ b/ax25rtd/ax25rtd.c @@ -61,12 +61,12 @@ config *Config = NULL; int reload = 0; -ip_rt_entry *ip_routes = NULL; -int ip_routes_cnt = 0; +ip_rt_entry *ip_routes; +int ip_routes_cnt; int ip_maxroutes = IP_MAXROUTES; -ax25_rt_entry *ax25_routes = NULL; -int ax25_routes_cnt = 0; +ax25_rt_entry *ax25_routes; +int ax25_routes_cnt; int ax25_maxroutes = AX25_MAXROUTES; char ip_encaps_dev[32] = ""; diff --git a/call/call.c b/call/call.c index 3404483..f56dc1a 100644 --- a/call/call.c +++ b/call/call.c @@ -72,15 +72,15 @@ static int ax25mode = -1; static int debug = FALSE; static int af_mode = AF_AX25; -static int window = 0; -static int be_silent = 0; -static char *port = NULL; -static char *mycall = NULL; +static int window; +static int be_silent; +static char *port; +static char *mycall; static int stdin_is_tty = 1; int interrupted = FALSE; -int paclen = 0; +int paclen; int fd; int wait_for_remote_disconnect = FALSE; -- cgit v1.2.3