memzap

replay memory writes
git clone git://git.2f30.org/memzap
Log | Files | Refs | README | LICENSE

commit 634a1c5d750f77ea0f2bc8f51d1a92e31b1f61ef
parent 7f47e8fa20052b0965afba874a5eea6e4299744a
Author: sin <sin@2f30.org>
Date:   Wed,  6 Mar 2013 01:10:43 +0000

memzap: No need to have these variables globally visible

Diffstat:
Mmemzap.c | 9++++-----
1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/memzap.c b/memzap.c @@ -40,11 +40,6 @@ dump_base_image(const char *name, void *buf, size_t len) close(fdmem); } -static Elf_Scn *scn; -static Elf_Data *edata; -static GElf_Sym sym; -static GElf_Shdr shdr; - int main(int argc, char *argv[]) { @@ -66,6 +61,10 @@ main(int argc, char *argv[]) char *symbol = NULL, *tmp; Elf *e; Elf32_Word symbol_count, i; + Elf_Scn *scn = NULL; + Elf_Data *edata = NULL; + GElf_Sym sym; + GElf_Shdr shdr; while ((c = getopt(argc, argv, "hs:l:r:vV")) != -1) { switch (c) {