[hackers] [sbase] tar: Cast to proper type, no functional change || sin

From: <git_AT_suckless.org>
Date: Tue, 21 Apr 2015 17:20:41 +0200 (CEST)

commit 0925bf95ac95ca3eafb2ed62dd514ee09bf79914
Author: sin <sin_AT_2f30.org>
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
_AT_@ -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));
_AT_@ -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;
 
Received on Tue Apr 21 2015 - 17:20:41 CEST

This archive was generated by hypermail 2.3.0 : Tue Apr 21 2015 - 17:24:12 CEST