summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2017-07-25 21:53:29 +0200
committerRalf Baechle <ralf@linux-mips.org>2017-07-25 21:53:29 +0200
commitf4a142c0031a15f9a6532d9d910d66d3911f5adf (patch)
tree4c76c7f64e5062bd6e453b4a1fbf03be46ac8634
parentc0329673fa987eb2d493babb54c8aaa86ac7f9b3 (diff)
Compress multiple blank lines into single lines.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
-rw-r--r--ax25ipd/io.c5
-rw-r--r--ax25rtd/ax25rtctl.c1
-rw-r--r--ax25rtd/ax25rtd.h1
-rw-r--r--ax25rtd/cache_ctl.c2
-rw-r--r--ax25rtd/config.c5
-rw-r--r--ax25rtd/listener.c2
-rw-r--r--call/dostime.c3
-rw-r--r--call/menu.c2
-rw-r--r--listen/ax25dump.c1
-rw-r--r--listen/listen.c1
-rw-r--r--listen/nrdump.c1
-rw-r--r--listen/opentracdump.c6
-rw-r--r--listen/utils.c1
13 files changed, 0 insertions, 31 deletions
diff --git a/ax25ipd/io.c b/ax25ipd/io.c
index d17f9fd..281d248 100644
--- a/ax25ipd/io.c
+++ b/ax25ipd/io.c
@@ -26,13 +26,9 @@
#include <errno.h>
#include <syslog.h>
-
-
-
#include <termio.h>
static struct termio nterm;
-
int ttyfd = -1;
static int udpsock = -1;
static int sock = -1;
@@ -59,7 +55,6 @@ int ttyfd_bpq = 0;
#define FNDELAY O_NDELAY
#endif
-
/*
* process an I/O error; return true if a retry is needed
*
diff --git a/ax25rtd/ax25rtctl.c b/ax25rtd/ax25rtctl.c
index ba3c1ee..344f862 100644
--- a/ax25rtd/ax25rtctl.c
+++ b/ax25rtd/ax25rtctl.c
@@ -265,7 +265,6 @@ static void debug(void)
fd_set read_fds, write_fds;
struct timeval tv;
-
sock = open_socket();
while (1) {
diff --git a/ax25rtd/ax25rtd.h b/ax25rtd/ax25rtd.h
index ce73680..a662acc 100644
--- a/ax25rtd/ax25rtd.h
+++ b/ax25rtd/ax25rtd.h
@@ -50,7 +50,6 @@
#define AXLEN 7
#define IPLEN 20
-
/* structs for the caches */
typedef struct ip_rt_entry_ {
diff --git a/ax25rtd/cache_ctl.c b/ax25rtd/cache_ctl.c
index 6882a24..baac073 100644
--- a/ax25rtd/cache_ctl.c
+++ b/ax25rtd/cache_ctl.c
@@ -123,7 +123,6 @@ int update_ip_route(config * config, unsigned long ip, int ipmode,
return action;
}
-
ax25_rt_entry *update_ax25_route(config * config, ax25_address * call,
int ndigi, ax25_address * digi,
time_t timestamp)
@@ -302,7 +301,6 @@ int del_ax25_route(config * config, ax25_address * call)
return 1;
}
-
void expire_ax25_route(time_t when)
{
ax25_rt_entry *bp;
diff --git a/ax25rtd/config.c b/ax25rtd/config.c
index 272da80..a483a15 100644
--- a/ax25rtd/config.c
+++ b/ax25rtd/config.c
@@ -64,7 +64,6 @@ static long asc2ip(char *s)
return addr.s_addr;
}
-
static char *prepare_cmdline(char *buf)
{
char *p;
@@ -139,7 +138,6 @@ static ax25_address *get_mycall(char *port)
return asc2ax(addr);
}
-
static void load_ports(void)
{
config *config, *cfg, *ncfg;
@@ -227,7 +225,6 @@ static void load_listeners(void)
FILE *fp;
ax25_address *axcall;
-
fp = fopen(PROC_AX25_FILE, "r");
if (fp == NULL) {
@@ -509,7 +506,6 @@ void reload_config(void)
load_config();
}
-
/* commands:
---------
@@ -540,7 +536,6 @@ void reload_config(void)
over the port name.
*/
-
void interpret_command(int fd, char *buf)
{
char *p, *cmd, *arg, *arg2, *dev, *time;
diff --git a/ax25rtd/listener.c b/ax25rtd/listener.c
index 1d9aa1f..8a4ecf9 100644
--- a/ax25rtd/listener.c
+++ b/ax25rtd/listener.c
@@ -45,7 +45,6 @@
#include <stdlib.h>
-
/* FIXME */
static unsigned long get_from_arp(unsigned char *data, int size)
{
@@ -472,7 +471,6 @@ void ax25_receive(int sock)
else
return;
-
SKIP(ALEN);
}
diff --git a/call/dostime.c b/call/dostime.c
index 6e6e173..910a66e 100644
--- a/call/dostime.c
+++ b/call/dostime.c
@@ -5,7 +5,6 @@
#include "call.h"
-
/* MS-DOS time/date conversion routines derived from: */
/*
@@ -20,7 +19,6 @@ static int day_n[] =
{ 0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334, 0, 0, 0, 0 };
/* Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec */
-
/* Convert a MS-DOS time/date pair to a UNIX date (seconds since 1 1 70). */
static int date_dos2unix(unsigned short time, unsigned short date)
@@ -39,7 +37,6 @@ static int date_dos2unix(unsigned short time, unsigned short date)
return secs;
}
-
/* Convert linear UNIX date to a MS-DOS time/date pair. */
void date_unix2dos(time_t unix_date, unsigned short *time,
diff --git a/call/menu.c b/call/menu.c
index 6a0613f..7de66b4 100644
--- a/call/menu.c
+++ b/call/menu.c
@@ -199,7 +199,6 @@ int p_dwn_menu(wint * wtab, menuitem * menustr, int starty, int startx)
if (c == 0x1b)
return 0;
-
if (c == KEY_RIGHT || c == KEY_LEFT)
return c;
else
@@ -235,7 +234,6 @@ void menu_write_item(WINDOW * win, int xpos, int reverse, const char st[])
wattroff(win, A_REVERSE);
}
-
int top_menu(wint * wtab, menuitem menustr[], int ystart)
{
int str_max_length = 0;
diff --git a/listen/ax25dump.c b/listen/ax25dump.c
index c59b500..4d78ba8 100644
--- a/listen/ax25dump.c
+++ b/listen/ax25dump.c
@@ -62,7 +62,6 @@ static char *decode_type(int);
#define NDAMA_STRING ""
#define DAMA_STRING " [DAMA]"
-
/* FlexNet header compression display by Thomas Sailer t.sailer@alumni.ethz.ch */
/* Dump an AX.25 packet header */
diff --git a/listen/listen.c b/listen/listen.c
index 61f5343..2b05f8b 100644
--- a/listen/listen.c
+++ b/listen/listen.c
@@ -157,7 +157,6 @@ static int32_t gmt2local(time_t t)
return (dt);
}
-
static void handle_sigint(int signal)
{
sigint++;
diff --git a/listen/nrdump.c b/listen/nrdump.c
index c9fb0c1..b8fb3dd 100644
--- a/listen/nrdump.c
+++ b/listen/nrdump.c
@@ -192,7 +192,6 @@ void netrom_dump(unsigned char *data, int length, int hexdump, int type)
}
}
-
static void netrom_flags(int flags)
{
if (flags & NR4CHOKE)
diff --git a/listen/opentracdump.c b/listen/opentracdump.c
index 1b0bc26..25dbcf2 100644
--- a/listen/opentracdump.c
+++ b/listen/opentracdump.c
@@ -27,8 +27,6 @@ static unsigned char entity_ssid;
static unsigned int entity_serial;
static unsigned int entity_sequence;
-
-
static int extract_ssid(char *call)
{
/* Strip the SSID from the callsign and return it */
@@ -324,7 +322,6 @@ static int decode_gpsquality(unsigned char *element, int element_len)
return 0;
}
-
static int decode_acreg(unsigned char *element, int element_len)
{
char nnumber[9]; /* 0x35 Aircraft Registration - ASCII text */
@@ -353,7 +350,6 @@ static int decode_rivergauge(unsigned char *element, int element_len)
return 0;
}
-
static int decode_units(unsigned int unitnum, unsigned char *element,
int element_len)
{
@@ -434,7 +430,6 @@ static int decode_maidenhead(unsigned char *element, int element_len)
return 0;
}
-
static struct {
unsigned int element_id;
unsigned char min_size;
@@ -464,7 +459,6 @@ static struct {
{0x300, 0, 2, decode_hazmat},
{0, 0, 0, NULL}}, *element_decode_ptr;
-
/* Dump an OpenTRAC packet */
void opentrac_dump(unsigned char *data, int length, int hexdump)
{
diff --git a/listen/utils.c b/listen/utils.c
index 7d058a1..4d99e10 100644
--- a/listen/utils.c
+++ b/listen/utils.c
@@ -112,7 +112,6 @@ int initcolor(void)
init_pair(T_FLEXNET, COLOR_BLUE, COLOR_BLACK);
init_pair(T_OPENTRAC, COLOR_YELLOW, COLOR_BLACK);
-
return 1;
}