From 98e45bcea73ee4642e6bfda672f5266089cb5586 Mon Sep 17 00:00:00 2001 From: David Smith Date: Mon, 23 Feb 2009 09:45:24 -0600 Subject: Made probe_start()/probe_exit() function definitions match their declarations. 2009-02-23 David Smith * translate.cxx (translate_pass): Made probe_start()/probe_exit() function definitions match their declarations. --- translate.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'translate.cxx') diff --git a/translate.cxx b/translate.cxx index 530b077d..e6985504 100644 --- a/translate.cxx +++ b/translate.cxx @@ -5009,11 +5009,11 @@ translate_pass (systemtap_session& s) s.op->newline(); // XXX impedance mismatch - s.op->newline() << "static int probe_start () {"; + s.op->newline() << "static int probe_start (void) {"; s.op->newline(1) << "return systemtap_module_init () ? -1 : 0;"; s.op->newline(-1) << "}"; s.op->newline(); - s.op->newline() << "static void probe_exit () {"; + s.op->newline() << "static void probe_exit (void) {"; s.op->newline(1) << "systemtap_module_exit ();"; s.op->newline(-1) << "}"; s.op->assert_0_indent(); -- cgit