summaryrefslogtreecommitdiffstats
path: root/runtime/runtime.h
diff options
context:
space:
mode:
authorhunt <hunt>2005-08-01 21:39:52 +0000
committerhunt <hunt>2005-08-01 21:39:52 +0000
commit3b971328035c179c41e6175a4feb3a5683588adf (patch)
treee9b7648e8a77561f0e9d650669e297d95ffc49fc /runtime/runtime.h
parent3dae777808caaa284988c961679c4450cf9a8af8 (diff)
downloadsystemtap-steved-3b971328035c179c41e6175a4feb3a5683588adf.tar.gz
systemtap-steved-3b971328035c179c41e6175a4feb3a5683588adf.tar.xz
systemtap-steved-3b971328035c179c41e6175a4feb3a5683588adf.zip
2005-08-01 Martin Hunt <hunt@redhat.com>
* 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().
Diffstat (limited to 'runtime/runtime.h')
-rw-r--r--runtime/runtime.h14
1 files changed, 2 insertions, 12 deletions
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();
}