diff rvinterf/tmsh/init.c @ 70:2c6dca514a20

fc-tmsh works like fc-shell and fc-fsio now, following the -p convention
author Mychaela Falconia <falcon@freecalypso.org>
date Wed, 26 Oct 2016 23:33:21 +0000
parents e7502631a0f9
children
line wrap: on
line diff
--- a/rvinterf/tmsh/init.c	Wed Oct 26 23:17:03 2016 +0000
+++ b/rvinterf/tmsh/init.c	Wed Oct 26 23:33:21 2016 +0000
@@ -10,8 +10,6 @@
 #include "pktmux.h"
 #include "localsock.h"
 
-extern int sock;
-
 init()
 {
 	static u_char want_rvt_lost[9] = {CLI2RVI_WANT_RVTRACE,
@@ -22,8 +20,6 @@
 					  0x00, 0x1E, 0x00, 0x04};
 	static u_char want_etm_mux[2] = {CLI2RVI_WANT_MUXPROTO, RVT_TM_HEADER};
 
-	if (!sock)
-		connect_local_socket();
 	localsock_prep_for_length_rx();
 	send_init_command(want_rvt_lost, 9);
 	send_init_command(want_rvt_etm, 9);