commit 0925bf95ac95ca3eafb2ed62dd514ee09bf79914
Author: sin <[email protected]>
Date:   Tue Apr 21 16:19:41 2015 +0100

    tar: Cast to proper type, no functional change

diff --git a/tar.c b/tar.c
index 64a37b0..ccecff9 100644
--- a/tar.c
+++ b/tar.c
@@ -113,7 +113,7 @@ archive(const char *path)
        pw = getpwuid(st.st_uid);
        gr = getgrgid(st.st_gid);
 
-       h = (void *)b;
+       h = (struct header *)b;
        memset(b, 0, sizeof(b));
        estrlcpy(h->name,    path,                        sizeof(h->name));
        putoctal(h->mode,    (unsigned)st.st_mode & 0777, sizeof(h->mode));
@@ -171,7 +171,7 @@ unarchive(char *fname, ssize_t l, char b[BLKSIZ])
 {
        FILE *f = NULL;
        struct timeval times[2];
-       struct header *h = (void *)b;
+       struct header *h = (struct header *)b;
        long mode, major, minor, type, mtime, uid, gid;
        char lname[101], *tmp, *p;
 

Reply via email to