summaryrefslogtreecommitdiffstats
path: root/ax25
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2017-01-30 11:12:15 +0100
committerRalf Baechle <ralf@linux-mips.org>2017-02-06 23:43:46 +0100
commit71918b7d4e95f6ccf7b4d90eb7538c3406c5fb05 (patch)
treeb5bfafe6c31b96eb4b354887a271f2519cd5de04 /ax25
parentd29e07686ce96f6ba2b18c3682d3117a98534484 (diff)
axwrapper: Mark functions sigchld_handler and convert_{cr_lf,lf_cr} static.
This results in a new warning about sigchld_handler() being unused which is because the caller is currently commented out which we leave to be sorted out later. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'ax25')
-rw-r--r--ax25/axwrapper.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ax25/axwrapper.c b/ax25/axwrapper.c
index 641730d..6e3ce3c 100644
--- a/ax25/axwrapper.c
+++ b/ax25/axwrapper.c
@@ -46,13 +46,13 @@
#define PERROR(s) fprintf(stderr, "*** %s: %s\r", (s), strerror(errno))
#define USAGE() fputs("Usage: axwrapper [-p <paclen>] <filename> <argv[0]> ...\r", stderr)
-void sigchld_handler(int sig)
+static void sigchld_handler(int sig)
{
/* fprintf(stderr, "Caught SIGCHLD, exiting...\r"); */
exit(0);
}
-void convert_cr_lf(unsigned char *buf, int len)
+static void convert_cr_lf(unsigned char *buf, int len)
{
while (len-- > 0) {
if (*buf == '\r') *buf = '\n';
@@ -60,7 +60,7 @@ void convert_cr_lf(unsigned char *buf, int len)
}
}
-void convert_lf_cr(unsigned char *buf, int len)
+static void convert_lf_cr(unsigned char *buf, int len)
{
while (len-- > 0) {
if (*buf == '\n') *buf = '\r';