From 284b7f2aab4828b34afafb5b19136e53522849e5 Mon Sep 17 00:00:00 2001 From: hunt Date: Thu, 8 Sep 2005 16:44:31 +0000 Subject: 2005-09-08 Martin Hunt * procfs.c (_stp_register_procfs): Change ifdefs to eliminate unused variable warnings. (_stp_unregister_procfs): Ditto. --- runtime/transport/ChangeLog | 6 ++++++ runtime/transport/procfs.c | 10 +++++++--- 2 files changed, 13 insertions(+), 3 deletions(-) (limited to 'runtime') 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 + + * procfs.c (_stp_register_procfs): Change ifdefs to eliminate + unused variable warnings. + (_stp_unregister_procfs): Ditto. + 2005-09-06 Martin Hunt * 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); -- cgit