diff options
-rw-r--r-- | Makefile.in | 4 | ||||
-rw-r--r-- | src/compress.c | 4 | ||||
-rw-r--r-- | src/readelf.c | 10 |
3 files changed, 9 insertions, 9 deletions
diff --git a/Makefile.in b/Makefile.in index 714fe9d1..0ad0b672 100644 --- a/Makefile.in +++ b/Makefile.in @@ -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 \ diff --git a/src/compress.c b/src/compress.c index 82034863..5978fbbd 100644 --- a/src/compress.c +++ b/src/compress.c @@ -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); diff --git a/src/readelf.c b/src/readelf.c index 357c2eaa..12c489cd 100644 --- a/src/readelf.c +++ b/src/readelf.c @@ -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; |