MNAMELEN is back to an int again after Kirk's statfs commit

kern/vfs_mount.c:1305: warning: signed size_t format, different type arg (arg 4)
*** Error code 1
This commit is contained in:
Peter Wemm 2003-11-12 17:09:12 +00:00
parent 67371b0f5c
commit cde6302bf0

View File

@ -1302,7 +1302,7 @@ vfs_mountroot_try(char *mountfrom)
vfsname = malloc(MFSNAMELEN, M_MOUNT, M_WAITOK);
path = malloc(MNAMELEN, M_MOUNT, M_WAITOK);
vfsname[0] = path[0] = 0;
sprintf(patt, "%%%d[a-z0-9]:%%%zds", MFSNAMELEN, MNAMELEN);
sprintf(patt, "%%%d[a-z0-9]:%%%ds", MFSNAMELEN, MNAMELEN);
if (sscanf(mountfrom, patt, vfsname, path) < 1)
goto done;