diff rvinterf/tmsh/main.c @ 422:c1aadfcd185f

rvinterf client refactoring: libasync clients converted to use libinterf
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 28 Oct 2018 00:00:51 +0000
parents 27c41e4b21ae
children e40bb5a6c6b9
line wrap: on
line diff
--- a/rvinterf/tmsh/main.c	Sat Oct 27 23:48:20 2018 +0000
+++ b/rvinterf/tmsh/main.c	Sun Oct 28 00:00:51 2018 +0000
@@ -9,15 +9,13 @@
 #include <unistd.h>
 #include "exitcodes.h"
 
-char *socket_pathname = "/tmp/rvinterf_socket";
-char *rvinterf_ttyport;
+extern char *socket_pathname;
+extern char *rvinterf_ttyport, *rvinterf_Bopt, *rvinterf_lopt, *rvinterf_wopt;
+extern int sock;
+
 int ttyhacks, dflag;
 int oneshot_nowait;
 
-int sock;
-
-extern char *rvinterf_Bopt, *rvinterf_lopt, *rvinterf_wopt;
-
 main(argc, argv)
 	char **argv;
 {
@@ -62,7 +60,7 @@
 				argv[0]);
 			exit(ERROR_USAGE);
 		}
-		launch_rvinterf(rvinterf_ttyport);
+		launch_rvinterf();
 	} else {
 		if (rvinterf_Bopt || rvinterf_lopt || rvinterf_wopt) {
 			fprintf(stderr,