summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhunt <hunt>2005-09-08 16:44:31 +0000
committerhunt <hunt>2005-09-08 16:44:31 +0000
commit284b7f2aab4828b34afafb5b19136e53522849e5 (patch)
treec1b9631a50e8ebb37dfe2885cc596c72253b5baf
parentb3f8aec650def4466fb8b89ae53dda7b7f828d63 (diff)
downloadsystemtap-steved-284b7f2aab4828b34afafb5b19136e53522849e5.tar.gz
systemtap-steved-284b7f2aab4828b34afafb5b19136e53522849e5.tar.xz
systemtap-steved-284b7f2aab4828b34afafb5b19136e53522849e5.zip
2005-09-08 Martin Hunt <hunt@redhat.com>
* procfs.c (_stp_register_procfs): Change ifdefs to eliminate unused variable warnings. (_stp_unregister_procfs): Ditto.
-rw-r--r--runtime/transport/ChangeLog6
-rw-r--r--runtime/transport/procfs.c10
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);