From: Ben Gras Date: Fri, 24 Mar 2006 14:04:16 +0000 (+0000) Subject: Compiler warning X-Git-Tag: v3.1.2a~156 X-Git-Url: http://zhaoyanbai.com/repos/icons/debian/static/howto.html?a=commitdiff_plain;h=1ba2b198b4065c9c5c89e98e171438aefeb936a0;p=minix.git Compiler warning --- diff --git a/commands/pax/tar.c b/commands/pax/tar.c index 0ea3d9104..f6861ded4 100644 --- a/commands/pax/tar.c +++ b/commands/pax/tar.c @@ -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)