about summary refs log tree commit diff
path: root/include
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2003-03-18 00:37:46 +0000
committerRoland McGrath <roland@gnu.org>2003-03-18 00:37:46 +0000
commitd632d5ce2b075cc7de1142ea45a136ac8224b4a7 (patch)
tree00e1fca6476fc098d8401eb1704355c6de6332b4 /include
parentbd0fa4cefd54effb6ff52c2a497517b95aa44c0a (diff)
downloadglibc-d632d5ce2b075cc7de1142ea45a136ac8224b4a7.tar.gz
glibc-d632d5ce2b075cc7de1142ea45a136ac8224b4a7.tar.xz
glibc-d632d5ce2b075cc7de1142ea45a136ac8224b4a7.zip
2003-03-17 Roland McGrath <roland@redhat.com>
	* include/ctype.h: Revert last change.
Diffstat (limited to 'include')
-rw-r--r--include/ctype.h17
1 files changed, 10 insertions, 7 deletions
diff --git a/include/ctype.h b/include/ctype.h
index aad0aad530..ca3c3dd856 100644
--- a/include/ctype.h
+++ b/include/ctype.h
@@ -25,28 +25,31 @@ __libc_tsd_define (extern, CTYPE_TOLOWER)
 CTYPE_EXTERN_INLINE const uint16_t ** __attribute__ ((const))
 __ctype_b_loc (void)
 {
-  void **tablep = __libc_tsd_address (CTYPE_B);
+  const uint16_t **tablep =
+    (const uint16_t **) __libc_tsd_address (CTYPE_B);
   if (__builtin_expect (*tablep == NULL, 0))
-    *tablep = (uint16_t *) _NL_CURRENT (LC_CTYPE, _NL_CTYPE_CLASS) + 128;
-  return (const uint16_t **) tablep;
+    *tablep = (const uint16_t *) _NL_CURRENT (LC_CTYPE, _NL_CTYPE_CLASS) + 128;
+  return tablep;
 }
 
 CTYPE_EXTERN_INLINE const int32_t ** __attribute__ ((const))
 __ctype_toupper_loc (void)
 {
-  void **tablep = __libc_tsd_address (CTYPE_TOUPPER);
+  const int32_t **tablep =
+    (const int32_t **) __libc_tsd_address (CTYPE_TOUPPER);
   if (__builtin_expect (*tablep == NULL, 0))
     *tablep = ((int32_t *) _NL_CURRENT (LC_CTYPE, _NL_CTYPE_TOUPPER) + 128);
-  return (const int32_t **) tablep;
+  return tablep;
 }
 
 CTYPE_EXTERN_INLINE const int32_t ** __attribute__ ((const))
 __ctype_tolower_loc (void)
 {
-  void **tablep = __libc_tsd_address (CTYPE_TOLOWER);
+  const int32_t **tablep =
+    (const int32_t **) __libc_tsd_address (CTYPE_TOLOWER);
   if (__builtin_expect (*tablep == NULL, 0))
     *tablep = ((int32_t *) _NL_CURRENT (LC_CTYPE, _NL_CTYPE_TOLOWER) + 128);
-  return (const int32_t **) tablep;
+  return tablep;
 }
 
 # endif	/* Not NOT_IN_libc.  */