diff options
author | Joseph Myers <joseph@codesourcery.com> | 2013-10-08 00:14:08 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2013-10-08 00:14:08 +0000 |
commit | 7602d070dca35a848aff1d72cf0724f02df72f62 (patch) | |
tree | a2764ad033962e9e3dd2918f9b16a52c40277624 /locale/programs/locfile.c | |
parent | f17f137aaf563daf1ce5532763455b09f5db9b8f (diff) | |
download | glibc-7602d070dca35a848aff1d72cf0724f02df72f62.zip glibc-7602d070dca35a848aff1d72cf0724f02df72f62.tar.gz glibc-7602d070dca35a848aff1d72cf0724f02df72f62.tar.bz2 |
Clean up locale file alignment handling.
Diffstat (limited to 'locale/programs/locfile.c')
-rw-r--r-- | locale/programs/locfile.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/locale/programs/locfile.c b/locale/programs/locfile.c index 4969391..3e76ec9 100644 --- a/locale/programs/locfile.c +++ b/locale/programs/locfile.c @@ -627,7 +627,7 @@ add_locale_wstring (struct locale_file *file, const uint32_t *string) void add_locale_uint32 (struct locale_file *file, uint32_t value) { - align_locale_data (file, sizeof (uint32_t)); + align_locale_data (file, LOCFILE_ALIGN); record_offset (file); value = maybe_swap_uint32 (value); obstack_grow (&file->data, &value, sizeof (value)); @@ -639,7 +639,7 @@ void add_locale_uint32_array (struct locale_file *file, const uint32_t *data, size_t n_elems) { - align_locale_data (file, sizeof (uint32_t)); + align_locale_data (file, LOCFILE_ALIGN); record_offset (file); obstack_grow (&file->data, data, n_elems * sizeof (uint32_t)); maybe_swap_uint32_obstack (&file->data, n_elems); |