]> Zhao Yanbai Git Server - minix.git/commitdiff
Compiler warning
authorBen Gras <ben@minix3.org>
Fri, 24 Mar 2006 14:04:16 +0000 (14:04 +0000)
committerBen Gras <ben@minix3.org>
Fri, 24 Mar 2006 14:04:16 +0000 (14:04 +0000)
commands/pax/tar.c

index 0ea3d910424081b9800e19cc8d1b26d354616025..f6861ded46a792eace9fa6272d15a6eb0540e4e9 100644 (file)
@@ -790,7 +790,7 @@ ustar_rd(ARCHD *arcn, char *buf)
         * the POSIX spec wants).
         */
        hd->gname[sizeof(hd->gname) - 1] = '\0';
-       if (gid_name(hd->gname, &(arcn->sb.st_gid)) < 0)
+       if (gid_name((char *) hd->gname, (gid_t *) &(arcn->sb.st_gid)) < 0)
                arcn->sb.st_gid = (gid_t)asc_ul(hd->gid, sizeof(hd->gid), OCT);
        hd->uname[sizeof(hd->uname) - 1] = '\0';
        if (uid_name(hd->uname, &(arcn->sb.st_uid)) < 0)