summaryrefslogtreecommitdiffstats
path: root/ax25
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2013-06-05 01:42:05 +0200
committerRalf Baechle <ralf@linux-mips.org>2013-06-17 17:11:30 +0200
commit5feb3d651dbd1b096a26963bd1dffcfe0a5f9eea (patch)
treeaa82bb7320480efba49b850b21193ecfee963fe3 /ax25
parent1245fbd2a8d60bab7b16b8a1d3c0122fee72f53f (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>
Diffstat (limited to 'ax25')
-rw-r--r--ax25/ax25d.c2
-rw-r--r--ax25/axgetput/axgetput.c20
-rw-r--r--ax25/axspawn.c18
-rw-r--r--ax25/mheard.c2
4 files changed, 21 insertions, 21 deletions
diff --git a/ax25/ax25d.c b/ax25/ax25d.c
index 9e20b03..ee921ab 100644
--- a/ax25/ax25d.c
+++ b/ax25/ax25d.c
@@ -182,7 +182,7 @@ struct axlist { /* Have used same struct for quickness */
int LoggingVC; /* extra log stuff */
};
-static struct axlist *AXL = NULL;
+static struct axlist *AXL;
static char *ConfigFile = CONF_AX25D_FILE;
static char User[10]; /* Room for 'GB9ZZZ-15\0' */
static char Node[10]; /* Room for 'GB9ZZZ-15\0' */
diff --git a/ax25/axgetput/axgetput.c b/ax25/axgetput/axgetput.c
index 1696dbf..c2f4d25 100644
--- a/ax25/axgetput/axgetput.c
+++ b/ax25/axgetput/axgetput.c
@@ -24,25 +24,25 @@
#include "util.h"
#include "proto_bin.h"
-int fdin = 0;
+int fdin;
int fdout = 1;
int fderr = 2;
-int fdout_is_pipe = 0;
-int fdin_is_pipe = 0;
+int fdout_is_pipe;
+int fdin_is_pipe;
-int is_stream = 0;
-int mode = 0;
-int do_crc_only = 0;
+int is_stream;
+int mode;
+int do_crc_only;
char c_eol = '\n';
unsigned int BLOCKSIZ = BLOCKSIZ_DEFAULT;
-char *send_on_signal = 0;
+char *send_on_signal;
static struct termios prev_termios;
-static int prev_termios_stored = 0;
-static mode_t mode_tty = 0;
+static int prev_termios_stored;
+static mode_t mode_tty;
#ifndef MYNAME
#define MYNAME "axgetput"
@@ -98,7 +98,7 @@ static void eol_convention(int state_should)
/* need patched axspawn */
#define BIN_ON "//BIN ON\r"
#define BIN_OFF "//BIN OFF\r"
- static int state_is = 0;
+ static int state_is;
/* already in correct state? */
if ((state_is && state_should) || (!state_is && !state_should))
diff --git a/ax25/axspawn.c b/ax25/axspawn.c
index 31fddbc..e92d3ac 100644
--- a/ax25/axspawn.c
+++ b/ax25/axspawn.c
@@ -428,12 +428,12 @@ static unsigned short mask16tab[16] = {
char policy_add_user = 1;
-char policy_add_empty_password = 0;
-char policy_add_prog_useradd = 0;
+char policy_add_empty_password;
+char policy_add_prog_useradd;
char policy_guest = 1;
-char policy_associate = 0;
+char policy_associate;
char pwcheck = 1;
-char secure_home = 0;
+char secure_home;
gid_t user_gid = 400;
char *user_shell = "/bin/bash";
@@ -443,8 +443,8 @@ int start_uid = 400;
int end_uid = 65535;
int paclen = ROSE_PACLEN; /* Its the shortest ie safest */
-int huffman = 0;
-int bin = 0;
+int huffman;
+int bin;
int fdmaster;
struct write_queue {
@@ -453,8 +453,8 @@ struct write_queue {
unsigned int len;
};
-struct write_queue *wqueue_head = NULL;
-struct write_queue *wqueue_tail = NULL;
+struct write_queue *wqueue_head;
+struct write_queue *wqueue_tail;
long wqueue_length = 0L;
@@ -850,7 +850,7 @@ int write_ax25(char *s, int len, int kick)
struct termios termios;
static struct termios save_termios;
static struct termios save_termios_master;
- static int last_ended_with_CR = 0;
+ static int last_ended_with_CR;
int i = 0;
int j = 0;
diff --git a/ax25/mheard.c b/ax25/mheard.c
index a7b46cf..c2f2013 100644
--- a/ax25/mheard.c
+++ b/ax25/mheard.c
@@ -35,7 +35,7 @@ static char *types[] = {
"UI",
"????"};
-static struct PortRecord *PortList = NULL;
+static struct PortRecord *PortList;
static void PrintHeader(int data)
{