Add const and unsigned when it make sense and use size_t. Also use -Wall
[elfdbg/.git] / elfdbg.c
index 3f62372f026fc1d4f7b81718bd67418c9d9e8a2b..b83565d38a7acf2c9e0fe246642bcff6fe2c1c86 100644 (file)
--- a/elfdbg.c
+++ b/elfdbg.c
@@ -46,7 +46,8 @@ usage(void)
 int
 main(int argc, char *argv[])
 {
-       int rc, has_debug;
+       int rc; 
+       unsigned int has_debug;
        int ch, qflag = 0, vflag = 0;
        Elf_Obj *e = NULL;
        Elf_Shdr *shstr = NULL;