changeset 915:7b805007dcfc

etmsync: slight "main" refactoring in preparation for multiple programs
author Space Falcon <falcon@ivan.Harhan.ORG>
date Tue, 08 Sep 2015 18:26:42 +0000
parents de0505be800d
children 8e1c55cf7989
files rvinterf/etmsync/connect.c rvinterf/etmsync/fsiomain.c
diffstat 2 files changed, 3 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/rvinterf/etmsync/connect.c	Tue Sep 08 18:08:03 2015 +0000
+++ b/rvinterf/etmsync/connect.c	Tue Sep 08 18:26:42 2015 +0000
@@ -14,8 +14,8 @@
 #include "localsock.h"
 #include "exitcodes.h"
 
-extern char *socket_pathname;
-extern int sock;
+char *socket_pathname = "/tmp/rvinterf_socket";
+int sock;
 
 connect_local_socket()
 {
--- a/rvinterf/etmsync/fsiomain.c	Tue Sep 08 18:08:03 2015 +0000
+++ b/rvinterf/etmsync/fsiomain.c	Tue Sep 08 18:26:42 2015 +0000
@@ -7,9 +7,7 @@
 #include <unistd.h>
 #include "exitcodes.h"
 
-char *socket_pathname = "/tmp/rvinterf_socket";
-int sock;
-
+extern char *socket_pathname;
 extern char *rvinterf_ttyport, *rvinterf_Bopt, *rvinterf_lopt, *rvinterf_wopt;
 
 main(argc, argv)