From 3b971328035c179c41e6175a4feb3a5683588adf Mon Sep 17 00:00:00 2001 From: hunt Date: Mon, 1 Aug 2005 21:39:52 +0000 Subject: 2005-08-01 Martin Hunt * io.c (_stp_vlog): Use _stp_pid instead os _stp_tport->pid. * print.c (_stp_print_flush): Don't need _stp_tport. *runtime.h (probe_start): Just call _stp_transport_init(). (probe_exit): Just call _stp_transport_close(). --- runtime/runtime.h | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) (limited to 'runtime/runtime.h') diff --git a/runtime/runtime.h b/runtime/runtime.h index 62240e1f..5903bede 100644 --- a/runtime/runtime.h +++ b/runtime/runtime.h @@ -59,23 +59,13 @@ static struct /************* Module Stuff ********************/ int probe_start(void); -int init_module(void) +int init_module (void) { - int ret; - - /* First open connection. This exits on failure. */ - TRANSPORT_OPEN; - - ret = probe_start(); - if (ret < 0) - _stp_transport_close(); - - return ret; + return _stp_transport_init(); } void cleanup_module(void) { - _stp_transport_cleanup(); _stp_transport_close(); } -- cgit