diff options
author | David Smith <dsmith@redhat.com> | 2009-02-23 09:45:24 -0600 |
---|---|---|
committer | David Smith <dsmith@redhat.com> | 2009-02-23 09:45:24 -0600 |
commit | 98e45bcea73ee4642e6bfda672f5266089cb5586 (patch) | |
tree | aa1a3c216f2f4be9a5183d2c2cbcf47b7e33c8a7 /translate.cxx | |
parent | e91b6404429283f0f72517736875a8c64333ff7d (diff) | |
download | systemtap-steved-98e45bcea73ee4642e6bfda672f5266089cb5586.tar.gz systemtap-steved-98e45bcea73ee4642e6bfda672f5266089cb5586.tar.xz systemtap-steved-98e45bcea73ee4642e6bfda672f5266089cb5586.zip |
Made probe_start()/probe_exit() function definitions match their declarations.
2009-02-23 David Smith <dsmith@redhat.com>
* translate.cxx (translate_pass): Made probe_start()/probe_exit()
function definitions match their declarations.
Diffstat (limited to 'translate.cxx')
-rw-r--r-- | translate.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
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(); |