From 5d6c7fdf83abcea5fd089d72a5c49724e251b25a Mon Sep 17 00:00:00 2001 From: yamt Date: Thu, 14 Mar 2002 21:18:46 +0000 Subject: [PATCH] wcwidth's argument is wchar_t. not wint_t. --- lib/libc/locale/iswctype.c | 6 +++--- lib/libc/locale/iswctype_sb.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/libc/locale/iswctype.c b/lib/libc/locale/iswctype.c index 5711fd52ac65..9241a8d93a99 100644 --- a/lib/libc/locale/iswctype.c +++ b/lib/libc/locale/iswctype.c @@ -1,4 +1,4 @@ -/* $NetBSD: iswctype.c,v 1.7 2001/02/06 18:48:41 christos Exp $ */ +/* $NetBSD: iswctype.c,v 1.8 2002/03/14 21:18:46 yamt Exp $ */ /* * Copyright (c) 1989 The Regents of the University of California. @@ -40,7 +40,7 @@ #include #if defined(LIBC_SCCS) && !defined(lint) -__RCSID("$NetBSD: iswctype.c,v 1.7 2001/02/06 18:48:41 christos Exp $"); +__RCSID("$NetBSD: iswctype.c,v 1.8 2002/03/14 21:18:46 yamt Exp $"); #endif /* LIBC_SCCS and not lint */ #include @@ -200,7 +200,7 @@ towlower(c) #undef wcwidth int wcwidth(c) - wint_t c; + wchar_t c; { return ((unsigned)__maskrune_w((c), _CTYPE_SWM) >> _CTYPE_SWS); } diff --git a/lib/libc/locale/iswctype_sb.c b/lib/libc/locale/iswctype_sb.c index bfd93774277c..acd2c989efa1 100644 --- a/lib/libc/locale/iswctype_sb.c +++ b/lib/libc/locale/iswctype_sb.c @@ -1,4 +1,4 @@ -/* $NetBSD: iswctype_sb.c,v 1.1 2000/12/25 23:30:58 itojun Exp $ */ +/* $NetBSD: iswctype_sb.c,v 1.2 2002/03/14 21:18:46 yamt Exp $ */ /* * Copyright (c) 1989 The Regents of the University of California. @@ -40,7 +40,7 @@ #include #if defined(LIBC_SCCS) && !defined(lint) -__RCSID("$NetBSD: iswctype_sb.c,v 1.1 2000/12/25 23:30:58 itojun Exp $"); +__RCSID("$NetBSD: iswctype_sb.c,v 1.2 2002/03/14 21:18:46 yamt Exp $"); #endif /* LIBC_SCCS and not lint */ #include @@ -162,7 +162,7 @@ towlower(c) #undef wcwidth int wcwidth(c) - wint_t c; + wchar_t c; { return 1; }