summaryrefslogtreecommitdiffstats
path: root/call
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2016-02-12 17:08:29 +0100
committerRalf Baechle <ralf@linux-mips.org>2016-02-12 17:08:29 +0100
commit48c256f2799e4c31bc1752504436aa94601cea05 (patch)
tree78578558065b5e6cdd00c7ccee72012c39a579c5 /call
parentc0970397c47af6b29926cd887e8eb52506ca411d (diff)
call: Have exactly one empty line following functions.
Replace sequences of multiple empty lines to just one. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'call')
-rw-r--r--call/call.c15
1 files changed, 3 insertions, 12 deletions
diff --git a/call/call.c b/call/call.c
index 67dda49..021d1d5 100644
--- a/call/call.c
+++ b/call/call.c
@@ -133,7 +133,6 @@ typedef struct {
int len;
}scrollbackstruct;
-
static scrollbackstruct scrollback[SCROLLBACKSIZE];
static int topscroll, lastscroll, scrolledup, eatchar;
static char inbuf[MAX_BUFLEN];
@@ -201,7 +200,6 @@ static int widthchar(char *s, size_t bytes, int xpos)
return width;
}
-
static int completecharlen(char *s)
{
unsigned ut = (unsigned char)s[0];
@@ -223,7 +221,6 @@ static int completecharlen(char *s)
return clen;
}
-
/*
* Must check for COLS while redrawing from history. Or otherwise the text
* wraps around and does strange things.
@@ -444,6 +441,7 @@ static const char *key_words[] = { "//",
" stop_7+. ",
"\0"
};
+
static const char *rkey_words[] = {
/*
* actually restricted keywords are very restrictive
@@ -478,8 +476,6 @@ static void convert_upper_lower(char *buf, int len)
}
}
-
-
/* Return the with of this character in character blocks. (Normal = 1, CJK=2)
* Also for control chracters, return the width of the replacement string.
* */
@@ -560,7 +556,6 @@ static void drawinbuf(WINDOW *w, wchar_t *string, int bytes, int cur_pos)
}
}
-
/* Convert linear UNIX date to a MS-DOS time/date pair. */
static char * unix_to_sfbin_date_string(time_t gmt)
@@ -812,7 +807,6 @@ static int connect_to(char *address[])
return fd;
}
-
static void cmd_sigwinch(int sig)
{
signal(SIGWINCH, cmd_sigwinch);
@@ -966,7 +960,6 @@ int start_ab_download(int mode, WINDOW ** swin, wint * wintab,
strncpy(gp->file_name, STD_DWN_DIR, GP_FILENAME_SIZE-1);
gp->file_name[GP_FILENAME_SIZE-1] = 0;
-
if (crcst == parmsbytes - 1 || datest - crcst > 7
|| namest - datest > 10) {
*swin =
@@ -1412,6 +1405,7 @@ static void writeincom(int mode, int encoding, t_win * win_in, unsigned char buf
}
return;
}
+
static void writeincomstr(int mode, int encoding, t_win * win_in, char buf[], t_win *win_out)
{
int len;
@@ -1831,7 +1825,6 @@ static int searche_key_words(char buf[], int *bytes, char *parms, int *parmsbyte
int cnt = 0;
int t = 0;
-
if (cmpstrbyte != 0) {
memmove(buf + cmpstrbyte, buf, *bytes);
*bytes += cmpstrbyte;
@@ -1994,6 +1987,7 @@ static int sevenplname(int mode, WINDOW ** swin, wint * wintab, int *f,
return lines;
}
+
static void statbits(int mode, char stat, int m)
{
if (mode == RAWMODE)
@@ -2005,7 +1999,6 @@ static void statbits(int mode, char stat, int m)
refresh();
}
-
static int cmd_call(char *call[], int mode, int encoding)
{
menuitem con[] = {
@@ -2514,7 +2507,6 @@ static int cmd_call(char *call[], int mode, int encoding)
else
file_time = time(0);
-
do {
upllen =
read
@@ -3005,7 +2997,6 @@ int main(int argc, char **argv)
break;
}
-
if (!be_silent) {
printf("GW4PTS AX.25 Connect v1.11\n");
fflush(stdout);