summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--6pack/m6pack.c2
-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
-rw-r--r--hdlcutil/fl/xfsmdiag_main.cxx2
-rw-r--r--hdlcutil/hdrvcomm.c2
-rw-r--r--hdlcutil/sethdlc.c2
-rw-r--r--hdlcutil/smdiag.c2
-rw-r--r--kiss/kissattach.c16
-rw-r--r--kiss/kissnetd.c6
-rw-r--r--kiss/mkiss.c16
-rw-r--r--kiss/net2kiss.c8
-rw-r--r--netrom/netromd.c2
-rw-r--r--netrom/nrattach.c2
-rw-r--r--netrom/nrsdrv.c6
-rw-r--r--tcpip/rip98d.c4
-rw-r--r--tcpip/ttylinkd.c2
-rw-r--r--user_call/user_io.c4
19 files changed, 59 insertions, 59 deletions
diff --git a/6pack/m6pack.c b/6pack/m6pack.c
index 19c07ba..43d20cf 100644
--- a/6pack/m6pack.c
+++ b/6pack/m6pack.c
@@ -67,7 +67,7 @@ typedef enum {data, command} frame_t;
static __u8 ibuf[SIZE]; /* buffer for input operations */
static __u8 obuf[SIZE]; /* buffer for sixpack_tx() */
-static int invalid_ports = 0;
+static int invalid_ports;
static char *usage_string = "usage: m6pack [-l] [-s speed] [-x num_ptmx_devices] [-v] tyinterface pty ..\n";
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)
{
diff --git a/hdlcutil/fl/xfsmdiag_main.cxx b/hdlcutil/fl/xfsmdiag_main.cxx
index 1fd0dd8..2e05c29 100644
--- a/hdlcutil/fl/xfsmdiag_main.cxx
+++ b/hdlcutil/fl/xfsmdiag_main.cxx
@@ -53,7 +53,7 @@
/* ---------------------------------------------------------------------- */
static char *progname;
-static unsigned int drawflags = 0;
+static unsigned int drawflags;
/* ---------------------------------------------------------------------- */
diff --git a/hdlcutil/hdrvcomm.c b/hdlcutil/hdrvcomm.c
index 9f387ee..d27a37f 100644
--- a/hdlcutil/hdrvcomm.c
+++ b/hdlcutil/hdrvcomm.c
@@ -69,7 +69,7 @@ static const char *if_name = "bcsf0";
static char *prg_name;
static int fd = -1;
static struct ifreq ifr_h;
-static int promisc = 0;
+static int promisc;
static int afpacket = 1;
static int msqid = -1;
diff --git a/hdlcutil/sethdlc.c b/hdlcutil/sethdlc.c
index faa4765..3389a9e 100644
--- a/hdlcutil/sethdlc.c
+++ b/hdlcutil/sethdlc.c
@@ -47,7 +47,7 @@
/* ---------------------------------------------------------------------- */
-static unsigned char trace_stat = 0;
+static unsigned char trace_stat;
static char *progname;
/* ---------------------------------------------------------------------- */
diff --git a/hdlcutil/smdiag.c b/hdlcutil/smdiag.c
index 7dd9a00..6f9a79b 100644
--- a/hdlcutil/smdiag.c
+++ b/hdlcutil/smdiag.c
@@ -51,7 +51,7 @@
/* ---------------------------------------------------------------------- */
static char *progname;
-static Display *display = NULL;
+static Display *display;
static Window window;
static Pixmap pixmap;
static unsigned long col_zeroline;
diff --git a/kiss/kissattach.c b/kiss/kissattach.c
index 49f5ee2..e61eabb 100644
--- a/kiss/kissattach.c
+++ b/kiss/kissattach.c
@@ -33,15 +33,15 @@
#endif
static char *callsign;
-static int speed = 0;
-static int mtu = 0;
+static int speed;
+static int mtu;
static int logging = FALSE;
-static char *progname = NULL;
-static char *kttyname = NULL;
-static char *portname = NULL;
-static char *inetaddr = NULL;
-static int allow_broadcast = 0;
-static int i_am_unix98_pty_master = 0; /* unix98 ptmx support */
+static char *progname;
+static char *kttyname;
+static char *portname;
+static char *inetaddr;
+static int allow_broadcast;
+static int i_am_unix98_pty_master; /* unix98 ptmx support */
static char *kiss_basename(char *s)
{
diff --git a/kiss/kissnetd.c b/kiss/kissnetd.c
index 304aed1..903ee22 100644
--- a/kiss/kissnetd.c
+++ b/kiss/kissnetd.c
@@ -25,7 +25,7 @@
#include <limits.h>
static char *Version = "1.5";
-static int VerboseMode = 0;
+static int VerboseMode;
static int MaxFrameSize = 512;
#define REOPEN_TIMEOUT 30 /* try tio reopen every 10 s */
@@ -43,7 +43,7 @@ struct PortDescriptor {
static struct PortDescriptor *PortList[FD_SETSIZE];
-static int NbPort = 0;
+static int NbPort;
static void Usage(void)
{
@@ -161,7 +161,7 @@ static void ReopenPort(int PortNumber)
static void TickReopen(void)
{
int i;
- static int wrote_info = 0;
+ static int wrote_info;
time_t CurrentTime = time(NULL);
for (i=0; i<NbPort; i++) {
diff --git a/kiss/mkiss.c b/kiss/mkiss.c
index 7cce904..3abcbbd 100644
--- a/kiss/mkiss.c
+++ b/kiss/mkiss.c
@@ -78,9 +78,9 @@
static unsigned char ibuf[SIZE]; /* buffer for input operations */
static unsigned char obuf[SIZE]; /* buffer for kiss_tx() */
-static int crc_errors = 0;
-static int invalid_ports = 0;
-static int return_polls = 0;
+static int crc_errors;
+static int invalid_ports;
+static int return_polls ;
static char *usage_string = "usage: mkiss [-p interval] [-c] [-f] [-h] [-l] [-s speed] [-v] [-x <num_ptmx_devices>] ttyinterface pty ..\n";
@@ -89,7 +89,7 @@ static int dump_report = FALSE;
static int logging = FALSE;
static int crcflag = FALSE;
static int hwflag = FALSE;
-static int pollspeed = 0;
+static int pollspeed;
/* CRC-stuff */
typedef unsigned short int u16;
@@ -114,9 +114,9 @@ struct iface
* the client has to use */
};
-static struct iface *tty = NULL;
-static struct iface *pty[16] = { NULL };
-static int numptys = 0;
+static struct iface *tty;
+static struct iface *pty[16];
+static int numptys;
static void init_crc(void)
{
@@ -143,7 +143,7 @@ static void init_crc(void)
static int poll(int fd, int ports)
{
char buffer[3];
- static int port = 0;
+ static int port;
buffer[0] = FEND;
buffer[1] = POLL | (port << 4);
diff --git a/kiss/net2kiss.c b/kiss/net2kiss.c
index 04b4032..d3b5234 100644
--- a/kiss/net2kiss.c
+++ b/kiss/net2kiss.c
@@ -65,10 +65,10 @@
static int fdif, fdpty;
static struct ifreq ifr;
static char *progname;
-static int verbose = 0;
-static int i_am_unix98_pty_master = 0; /* unix98 ptmx support */
-static char *namepts = NULL; /* name of the unix98 pts slave, which
- * the client has to use */
+static int verbose;
+static int i_am_unix98_pty_master; /* unix98 ptmx support */
+static char *namepts; /* name of the unix98 pts slave, which
+ * the client has to use */
/* --------------------------------------------------------------------- */
diff --git a/netrom/netromd.c b/netrom/netromd.c
index a78db4b..bd2b69c 100644
--- a/netrom/netromd.c
+++ b/netrom/netromd.c
@@ -40,7 +40,7 @@ struct port_struct port_list[20];
int port_count = FALSE;
int compliant = FALSE;
int logging = FALSE;
-int debug = 0;
+int debug;
ax25_address my_call;
ax25_address node_call;
diff --git a/netrom/nrattach.c b/netrom/nrattach.c
index 0f8055e..87ff5aa 100644
--- a/netrom/nrattach.c
+++ b/netrom/nrattach.c
@@ -27,7 +27,7 @@
#include "../pathnames.h"
char *callsign;
-int mtu = 0;
+int mtu;
int readconfig(char *port)
{
diff --git a/netrom/nrsdrv.c b/netrom/nrsdrv.c
index 4383f84..c58c13f 100644
--- a/netrom/nrsdrv.c
+++ b/netrom/nrsdrv.c
@@ -39,10 +39,10 @@ static char *kissdev, *nrsdev;
#define NRS_CKSUM 3
static int nrs_state = NRS_WAIT;
-static unsigned char nrs_cksum = 0;
+static unsigned char nrs_cksum;
static unsigned char nrs_rxbuffer[512];
-static int nrs_rxcount = 0;
+static int nrs_rxcount;
#define FEND 0300
#define FESC 0333
@@ -56,7 +56,7 @@ static int nrs_rxcount = 0;
static int kiss_state = KISS_WAIT;
static unsigned char kiss_rxbuffer[512];
-static int kiss_rxcount = 0;
+static int kiss_rxcount;
static void terminate(int sig)
{
diff --git a/tcpip/rip98d.c b/tcpip/rip98d.c
index 9ea3dd2..b05d196 100644
--- a/tcpip/rip98d.c
+++ b/tcpip/rip98d.c
@@ -30,13 +30,13 @@
struct dest_struct dest_list[50];
-int dest_count = 0;
+int dest_count;
int debug = FALSE;
int route_restrict = FALSE;
int logging = FALSE;
-struct route_struct *first_route = NULL;
+struct route_struct *first_route;
static struct mask_struct {
unsigned long int mask;
diff --git a/tcpip/ttylinkd.c b/tcpip/ttylinkd.c
index 1cfc610..2babaeb 100644
--- a/tcpip/ttylinkd.c
+++ b/tcpip/ttylinkd.c
@@ -472,7 +472,7 @@ int send_control(int skt, struct in_addr addr, CTL_MSG msg, CTL_RESPONSE *resp)
fd_set fdvar;
struct timeval timeout;
struct sockaddr_in sin;
- static int talk_port = 0;
+ static int talk_port;
struct servent *pse;
/* Look up talk port once only */
diff --git a/user_call/user_io.c b/user_call/user_io.c
index d7e03c8..0a25136 100644
--- a/user_call/user_io.c
+++ b/user_call/user_io.c
@@ -11,7 +11,7 @@
#define BUFLEN 8192
-int compression = 0;
+int compression;
int paclen_in = 256;
int paclen_out = 256;
@@ -22,7 +22,7 @@ static unsigned char buf[BUFLEN];
#include <zlib.h>
/* Error in (de)compression happened? */
-static int compression_error = 0;
+static int compression_error;
/* These are for the (de)compressor */
static unsigned char input_buffer[BUFLEN];