@@ -541,7 +541,6 @@ int main(int argc, char **argv)
541
541
libvchan_t * data_vchan = NULL ;
542
542
int data_port ;
543
543
int data_domain ;
544
- int msg_type ;
545
544
int s ;
546
545
bool just_exec = false;
547
546
int wait_connection_end = 0 ;
@@ -633,7 +632,6 @@ int main(int argc, char **argv)
633
632
fprintf (stderr , "ERROR: when target domain is 'dom0', -c must be specified\n" );
634
633
usage (argv [0 ]);
635
634
}
636
- msg_type = MSG_SERVICE_CONNECT ;
637
635
strncpy (svc_params .ident , request_id , sizeof (svc_params .ident ) - 1 );
638
636
svc_params .ident [sizeof (svc_params .ident ) - 1 ] = '\0' ;
639
637
if (src_domain_name == NULL ) {
@@ -644,7 +642,7 @@ int main(int argc, char **argv)
644
642
s = connect_unix_socket (src_domain_id_str );
645
643
negotiate_connection_params (s ,
646
644
0 , /* dom0 */
647
- msg_type ,
645
+ MSG_SERVICE_CONNECT ,
648
646
(void * )& svc_params ,
649
647
sizeof (svc_params ),
650
648
& data_domain ,
@@ -678,11 +676,10 @@ int main(int argc, char **argv)
678
676
handle_failed_exec (data_vchan );
679
677
select_loop (data_vchan , data_protocol_version , & stdin_buffer );
680
678
} else {
681
- msg_type = just_exec ? MSG_JUST_EXEC : MSG_EXEC_CMDLINE ;
682
679
s = connect_unix_socket (domname );
683
680
negotiate_connection_params (s ,
684
681
src_domain_id ,
685
- msg_type ,
682
+ just_exec ? MSG_JUST_EXEC : MSG_EXEC_CMDLINE ,
686
683
remote_cmdline ,
687
684
compute_service_length (remote_cmdline , argv [0 ]),
688
685
& data_domain ,
0 commit comments