about summary refs log tree commit diff
path: root/locale
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-11-25 01:26:30 +0000
committerUlrich Drepper <drepper@redhat.com>2000-11-25 01:26:30 +0000
commit2a068d20fbe9e59b9c43dbeb9fa54999bdb19e10 (patch)
treee4c33d64a53d79197df9f3799d7d39886728744f /locale
parent9c0592ab3b82691480fff3732239d5892d367df9 (diff)
downloadglibc-2a068d20fbe9e59b9c43dbeb9fa54999bdb19e10.tar.gz
glibc-2a068d20fbe9e59b9c43dbeb9fa54999bdb19e10.tar.xz
glibc-2a068d20fbe9e59b9c43dbeb9fa54999bdb19e10.zip
Update.
	* locale/findlocale.c: Add casts to avoid warnings.
	* locale/localeinfo.h (LIMAGIC): Add cast to avoid warnings.
	* misc/efgcvt_r.c (fcvt_r): Use ssize_t instead of int and add cast
	to avoid warnings.
	* misc/tsearch.c (const_node): New type.
	(trecurse): Correct casts to avoid warnings.
	(__twalk): Likewise.
	* stdlib/tst-limits.c: Add z modifier to formats for WORD_BIT and
	LONG_BIT.

	* debug/backtrace-tst.c (compare): Add casts to avoid warnings.
Diffstat (limited to 'locale')
-rw-r--r--locale/findlocale.c4
-rw-r--r--locale/localeinfo.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/locale/findlocale.c b/locale/findlocale.c
index 162245f137..948dee2a46 100644
--- a/locale/findlocale.c
+++ b/locale/findlocale.c
@@ -167,7 +167,7 @@ _nl_find_locale (const char *locale_path, size_t locale_path_len,
   /* Determine the locale name for which loading succeeded.  This
      information comes from the file name.  The form is
      <path>/<locale>/LC_foo.  We must extract the <locale> part.  */
-  if (((struct locale_data *) locale_file->data)->name == NULL)
+  if (((const struct locale_data *) locale_file->data)->name == NULL)
     {
       char *cp, *endp;
 
@@ -185,7 +185,7 @@ _nl_find_locale (const char *locale_path, size_t locale_path_len,
     ((struct locale_data *) locale_file->data)->use_translit = 1;
 
   /* Increment the usage count.  */
-  if (((struct locale_data *) locale_file->data)->usage_count
+  if (((const struct locale_data *) locale_file->data)->usage_count
       < MAX_USAGE_COUNT)
     ++((struct locale_data *) locale_file->data)->usage_count;
 
diff --git a/locale/localeinfo.h b/locale/localeinfo.h
index 984696e024..d526794e51 100644
--- a/locale/localeinfo.h
+++ b/locale/localeinfo.h
@@ -33,7 +33,7 @@
 #include <intl/loadinfo.h>	/* For loaded_l10nfile definition.  */
 
 /* Magic number at the beginning of a locale data file for CATEGORY.  */
-#define	LIMAGIC(category)	(0x20000828 ^ (category))
+#define	LIMAGIC(category)	((unsigned int) (0x20000828 ^ (category)))
 
 /* Two special weight constants for the collation data.  */
 #define IGNORE_CHAR	2