msdosfs patch

John-Mark Gurney gurney_j at efn.org
Sat Jan 31 12:54:00 PST 2004


Greg J. wrote this message on Sat, Jan 31, 2004 at 12:31 -0700:
> >Since Tim didn't mail his patch to the amd64 list, perhaps you could 
> >re-post it there?
> oops.. I thought Tim's patch went to the freebsd-amd64 list as well.. 
> sorry. It's attached to this email. :)

looks good, though was this (mis)spelling of size_t intentional?

[...]
>  static u_int16_t unix2doschr(const u_char **, size_t *, struct msdosfsmount *);
[...]
> -	int i, j, l;
> +	ssize_t i, j;
> +	int l;
>  	int conv = 1;
>  	const u_char *cp, *dp, *dp1;
>  	u_char gentext[6], *wcp;
> @@ -531,7 +532,7 @@
>  	 * Filenames with some characters are not allowed!
>  	 */
>  	for (cp = un, i = unlen; i > 0;)
> -		if (unix2doschr(&cp, (size_t *)&i, pmp) == 0)
> +		if (unix2doschr(&cp, &i, pmp) == 0)
>  			return 0;
>  
>  	/*

-- 
  John-Mark Gurney				Voice: +1 415 225 5579

     "All that I will do, has been done, All that I have, has not."


More information about the freebsd-amd64 mailing list