diff options
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/transport/ChangeLog | 6 | ||||
-rw-r--r-- | runtime/transport/procfs.c | 10 |
2 files changed, 13 insertions, 3 deletions
diff --git a/runtime/transport/ChangeLog b/runtime/transport/ChangeLog index ed0b4329..a604c568 100644 --- a/runtime/transport/ChangeLog +++ b/runtime/transport/ChangeLog @@ -1,3 +1,9 @@ +2005-09-08 Martin Hunt <hunt@redhat.com> + + * procfs.c (_stp_register_procfs): Change ifdefs to eliminate + unused variable warnings. + (_stp_unregister_procfs): Ditto. + 2005-09-06 Martin Hunt <hunt@redhat.com> * transport.c (_stp_handle_start): Always reply to diff --git a/runtime/transport/procfs.c b/runtime/transport/procfs.c index 6406908d..f22be8fa 100644 --- a/runtime/transport/procfs.c +++ b/runtime/transport/procfs.c @@ -261,9 +261,12 @@ err: static int _stp_register_procfs (void) { - int i, j; + int i; const char *dirname = "systemtap"; +#ifdef STP_RELAYFS + int j; char buf[8]; +#endif struct proc_dir_entry *de; struct list_head *p, *tmp; @@ -351,11 +354,12 @@ err0: static void _stp_unregister_procfs (void) { + struct list_head *p, *tmp; +#ifdef STP_RELAYFS int i; char buf[8]; - struct list_head *p, *tmp; struct proc_dir_entry *de; -#ifdef STP_RELAYFS + for (de = _stp_proc_mod->subdir; de; de = de->next) kfree (de->data); |