Fixes for 64 bit cleanliness. The length arg to sysctl is a pointer to

size_t not int.

Reviewed by:	bp
This commit is contained in:
Peter Wemm 2003-07-26 04:03:18 +00:00
parent 26c4b7deaa
commit db75019614
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=118042

View File

@ -30,6 +30,7 @@
* SUCH DAMAGE.
*
* $Id: kiconv.c,v 1.3 2001/08/22 03:31:36 bp Exp $
* $FreeBSD$
*/
#include <sys/types.h>
@ -48,7 +49,7 @@ kiconv_add_xlat_table(const char *to, const char *from, const u_char *table)
{
struct iconv_add_in din;
struct iconv_add_out dout;
int olen;
size_t olen;
if (strlen(from) > ICONV_CSNMAXLEN || strlen(to) > ICONV_CSNMAXLEN)
return EINVAL;