sbase

suckless unix tools
git clone git://git.suckless.org/sbase
Log | Files | Refs | README | LICENSE

commit 0925bf95ac95ca3eafb2ed62dd514ee09bf79914
parent 22c0ae67a43b75967c384732a64c0001f0be2450
Author: sin <sin@2f30.org>
Date:   Tue, 21 Apr 2015 16:19:41 +0100

tar: Cast to proper type, no functional change

Diffstat:
Mtar.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 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;