summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2017-01-30 13:25:50 +0100
committerRalf Baechle <ralf@linux-mips.org>2017-02-06 23:43:46 +0100
commit8f24f131ebfb360b12c1ec03105f75ab2f451823 (patch)
tree551bde4116522f71e570cdbd1215594fd34b697c
parentf55a99c6cdf5a9d64ca5a2179649f94435d1260e (diff)
axgetput: Move definition of several array from a .h to a .c file.
And add proper declarations to the header file. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
-rw-r--r--ax25/axgetput/axgetput.c4
-rw-r--r--ax25/axgetput/axgetput.h6
2 files changed, 7 insertions, 3 deletions
diff --git a/ax25/axgetput/axgetput.c b/ax25/axgetput/axgetput.c
index 8620c72..fc57408 100644
--- a/ax25/axgetput/axgetput.c
+++ b/ax25/axgetput/axgetput.c
@@ -31,6 +31,10 @@ int fderr = 2;
int fdout_is_pipe;
int fdin_is_pipe;
+char myname[PATH_MAX+1];
+char filename[PATH_MAX+1];
+char err_msg[2048];
+
int is_stream;
int mode;
int do_crc_only;
diff --git a/ax25/axgetput/axgetput.h b/ax25/axgetput/axgetput.h
index c1ad6fa..198f07e 100644
--- a/ax25/axgetput/axgetput.h
+++ b/ax25/axgetput/axgetput.h
@@ -14,9 +14,9 @@ extern int fderr;
extern int fdin_is_pipe;
extern int fdout_is_pipe;
-char myname[PATH_MAX+1];
-char filename[PATH_MAX+1];
-char err_msg[2048];
+extern char myname[PATH_MAX+1];
+extern char filename[PATH_MAX+1];
+extern char err_msg[2048];
extern int is_stream;
extern int mode;