diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2013-06-05 01:42:06 +0200 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2015-05-02 18:16:05 +0200 |
commit | 1725ab720b56a94f895528a8aa89fe054ae9136d (patch) | |
tree | 34eab8fff24a2143a93588fa2ed4fdfbdc3c133a | |
parent | 904e050aa0f4250adc7b7f8125000ef26715abef (diff) |
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 <ralf@linux-mips.org>
-rw-r--r-- | ax25ipd/ax25ipd.c | 8 | ||||
-rw-r--r-- | ax25rtd/ax25rtd.c | 8 | ||||
-rw-r--r-- | 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; |