diff options
author | David Smith <dsmith@redhat.com> | 2009-02-18 09:29:39 -0600 |
---|---|---|
committer | David Smith <dsmith@redhat.com> | 2009-02-18 09:29:39 -0600 |
commit | 321b13b9ac2a395db1c7591cfe86bddfc0944e25 (patch) | |
tree | 60f7c5d5acb2c26ad6640e818cfbea3baa8da85a /runtime/sym.c | |
parent | 912907c362c919c33802104c0cd04c467c3e64cc (diff) | |
download | systemtap-steved-321b13b9ac2a395db1c7591cfe86bddfc0944e25.tar.gz systemtap-steved-321b13b9ac2a395db1c7591cfe86bddfc0944e25.tar.xz systemtap-steved-321b13b9ac2a395db1c7591cfe86bddfc0944e25.zip |
Removed unused functions and variables.
2009-02-18 David Smith <dsmith@redhat.com>
* io.c (_stp_log): Removed unused function.
* map.c (_stp_cmp): Replace _stp_log() with dbug().
* mempool.c (_stp_mempool_resize): Removed unused function.
* print.c (next_fmt): Removed unused function.
* procfs.c: Removed unused variable '_stp_num_procfs_files'.
* regs.c (_stp_ret_addr): Removed unused function.
* string.c (_stp_text_str): Removed unused variable 'len'.
* string.h: Removed unused variable '_stdout_' and function
declaration for deleted function '_stp_vsprintf'.
* sym.c: Removed unused variables.
* unwind.c (_stp_create_unwind_hdr): Removed unused function.
2009-02-18 David Smith <dsmith@redhat.com>
* control.c: Removed unused variable '_stp_current_buffers'.
* procfs.c (_stp_set_buffers): Removed unused function.
(_stp_register_ctl_channel_fs): Removed unused variables and
label.
* symbols.c (u32_swap): Removed unused function.
(generic_swap): Ditto.
(_stp_sort): Ditto.
(_stp_section_is_interesting): Ditto.
* transport.c (_stp_transport_init): Removed unused variable
'ret'.
Diffstat (limited to 'runtime/sym.c')
-rw-r--r-- | runtime/sym.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/runtime/sym.c b/runtime/sym.c index 62c9f3ce..1d88a862 100644 --- a/runtime/sym.c +++ b/runtime/sym.c @@ -1,6 +1,6 @@ /* -*- linux-c -*- * Symbolic Lookup Functions - * Copyright (C) 2005-2008 Red Hat Inc. + * Copyright (C) 2005-2009 Red Hat Inc. * Copyright (C) 2006 Intel Corporation. * * This file is part of systemtap, and is free software. You can @@ -25,7 +25,6 @@ static unsigned long _stp_module_relocate(const char *module, const char *sectio { static struct _stp_module *last = NULL; static struct _stp_section *last_sec; - unsigned long flags; unsigned i, j; /* if module is -1, we invalidate last. _stp_del_module calls this when modules are deleted. */ @@ -114,7 +113,6 @@ static const char *_stp_kallsyms_lookup(unsigned long addr, unsigned long *symbo struct _stp_module *m = NULL; struct _stp_section *sec = NULL; struct _stp_symbol *s = NULL; - unsigned long flags; unsigned end, begin = 0; m = _stp_mod_sec_lookup(addr, &sec); |