]> granicus.if.org Git - file/commitdiff
de-lint a bit FILE3_38
authorChristos Zoulas <christos@zoulas.com>
Thu, 16 May 2002 18:57:10 +0000 (18:57 +0000)
committerChristos Zoulas <christos@zoulas.com>
Thu, 16 May 2002 18:57:10 +0000 (18:57 +0000)
Makefile.in
src/compress.c
src/readelf.c

index 714fe9d1840626bf4f72cd4cabebe195c3f156d9..0ad0b672b87a4f8622532bd8c08dee3d541e7467 100644 (file)
@@ -122,7 +122,7 @@ missing mkinstalldirs
 
 DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
 
-TAR = gtar
+TAR = tar
 GZIP_ENV = --best
 SOURCES = $(file_SOURCES)
 OBJECTS = $(file_OBJECTS)
@@ -416,7 +416,7 @@ distdir: $(DISTFILES)
        @for file in $(DISTFILES); do \
          d=$(srcdir); \
          if test -d $$d/$$file; then \
-           cp -pr $$d/$$file $(distdir)/$$file; \
+           cp -pr $$/$$file $(distdir)/$$file; \
          else \
            test -f $(distdir)/$$file \
            || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
index 82034863b99995c49d85b3f7a20e9f4d9efdd3b4..5978fbbdb1ced85f272249ada21aa4fd41af4185 100644 (file)
@@ -22,7 +22,7 @@
 #endif
 
 #ifndef lint
-FILE_RCSID("@(#)$Id: compress.c,v 1.22 2002/05/16 18:45:56 christos Exp $")
+FILE_RCSID("@(#)$Id: compress.c,v 1.23 2002/05/16 18:57:10 christos Exp $")
 #endif
 
 
@@ -106,7 +106,7 @@ swrite(fd, buf, n)
                        return -1;
                default:
                        n -= rv;
-                       buf = ((char *)buf) + rv;
+                       buf = ((const char *)buf) + rv;
                        break;
                }
        while (n > 0);
index 357c2eaab5154da090c0231b4770091ce88e8849..12c489cd8bbac8f87592095a728397a07ec8cb3a 100644 (file)
@@ -14,7 +14,7 @@
 #include "readelf.h"
 
 #ifndef lint
-FILE_RCSID("@(#)$Id: readelf.c,v 1.19 2002/05/16 15:01:41 christos Exp $")
+FILE_RCSID("@(#)$Id: readelf.c,v 1.20 2002/05/16 18:57:11 christos Exp $")
 #endif
 
 #ifdef ELFCORE
@@ -170,9 +170,9 @@ dophn_exec(class, swap, fd, off, num, size)
        size_t size;
 {
        Elf32_Phdr ph32;
-       Elf32_Nhdr *nh32;
+       Elf32_Nhdr *nh32 = NULL;
        Elf64_Phdr ph64;
-       Elf64_Nhdr *nh64;
+       Elf64_Nhdr *nh64 = NULL;
        char *linking_style = "statically";
        char *shared_libraries = "";
        char nbuf[BUFSIZ];
@@ -362,9 +362,9 @@ dophn_core(class, swap, fd, off, num, size)
        size_t size;
 {
        Elf32_Phdr ph32;
-       Elf32_Nhdr *nh32;
+       Elf32_Nhdr *nh32 = NULL;
        Elf64_Phdr ph64;
-       Elf64_Nhdr *nh64;
+       Elf64_Nhdr *nh64 = NULL;
        size_t offset, nameoffset, noffset, reloffset;
        unsigned char c;
        int i, j;