about summary refs log tree commit diff
path: root/locale/loadlocale.c
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2013-10-08 00:14:08 +0000
committerJoseph Myers <joseph@codesourcery.com>2013-10-08 00:14:08 +0000
commit7602d070dca35a848aff1d72cf0724f02df72f62 (patch)
treea2764ad033962e9e3dd2918f9b16a52c40277624 /locale/loadlocale.c
parentf17f137aaf563daf1ce5532763455b09f5db9b8f (diff)
downloadglibc-7602d070dca35a848aff1d72cf0724f02df72f62.tar.gz
glibc-7602d070dca35a848aff1d72cf0724f02df72f62.tar.xz
glibc-7602d070dca35a848aff1d72cf0724f02df72f62.zip
Clean up locale file alignment handling.
Diffstat (limited to 'locale/loadlocale.c')
-rw-r--r--locale/loadlocale.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/locale/loadlocale.c b/locale/loadlocale.c
index de7e3d01da..45162f1364 100644
--- a/locale/loadlocale.c
+++ b/locale/loadlocale.c
@@ -148,7 +148,7 @@ _nl_intern_locale_data (int category, const void *data, size_t datasize)
 	newdata->values[cnt].string = newdata->filedata + idx;
       else
 	{
-	  if (idx % __alignof__ (u_int32_t) != 0)
+	  if (!LOCFILE_ALIGNED_P (idx))
 	    goto puntdata;
 	  newdata->values[cnt].word =
 	    *((const u_int32_t *) (newdata->filedata + idx));