Hi tech@,

I think the type of size variable should be more accurate to use size_t
instead of int.

Best Regards
Nan Xiao

Index: ldd.c
===================================================================
RCS file: /cvs/src/libexec/ld.so/ldd/ldd.c,v
retrieving revision 1.21
diff -u -p -r1.21 ldd.c
--- ldd.c       2 Jul 2017 19:06:12 -0000       1.21
+++ ldd.c       28 Sep 2017 03:16:10 -0000
@@ -96,7 +96,8 @@ doit(char *name)
 {
        Elf_Ehdr ehdr;
        Elf_Phdr *phdr;
-       int fd, i, size, status, interp=0;
+       int fd, i, status, interp=0;
+       size_t size;
        char buf[PATH_MAX];
        struct stat st;
        void * dlhandle;

Reply via email to