Adjust the inline to take a pointer to a constant array to avoid a
authorMatthew Dillon <dillon@dragonflybsd.org>
Thu, 7 Jul 2005 07:20:11 +0000 (07:20 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Thu, 7 Jul 2005 07:20:11 +0000 (07:20 +0000)
compiler warning.

include/ctype.h

index ed95f2a..6fc4673 100644 (file)
@@ -33,7 +33,7 @@
  *
  *     @(#)ctype.h     5.3 (Berkeley) 4/3/91
  *     $NetBSD: src/include/ctype.h,v 1.25 2003/10/22 15:51:18 kleink Exp $
- *     $DragonFly: src/include/ctype.h,v 1.14 2005/07/07 07:17:42 dillon Exp $
+ *     $DragonFly: src/include/ctype.h,v 1.15 2005/07/07 07:20:11 dillon Exp $
  */
 
 #ifndef _CTYPE_H_
@@ -109,7 +109,7 @@ __libc_ctype_index(__uint16_t mask, int c)
 }
 
 static __inline int
-__libc_ctype_convert(__int16_t *array, int c)
+__libc_ctype_convert(const __int16_t *array, int c)
 {
        if (c < -1 || c >= _CTYPE_NUM_CHARS)
                return(c);      /* XXX maybe assert instead? */