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/procfs.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'runtime/transport/procfs.c') 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