summary refs log tree commit diff
path: root/locale/programs/ld-time.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-09-20 05:22:07 +0000
committerUlrich Drepper <drepper@redhat.com>1999-09-20 05:22:07 +0000
commit90952c77b41fc3d9f095702dab1c7861aa69983c (patch)
treedf69e8b7a4736d64588901124d2458e87fd6fbec /locale/programs/ld-time.c
parent3a4cbb41861badaf557b1896542c00d4f40d9f45 (diff)
downloadglibc-90952c77b41fc3d9f095702dab1c7861aa69983c.tar.gz
glibc-90952c77b41fc3d9f095702dab1c7861aa69983c.tar.xz
glibc-90952c77b41fc3d9f095702dab1c7861aa69983c.zip
Update.
	* locale/programs/ld-monetary.c (monetary_output): Remove
	byte-order code.

	* locale/programs/ld-time.c (time_output): Correct expected number
	of iov entries.
Diffstat (limited to 'locale/programs/ld-time.c')
-rw-r--r--locale/programs/ld-time.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/locale/programs/ld-time.c b/locale/programs/ld-time.c
index 5a52029858..6703eb7a60 100644
--- a/locale/programs/ld-time.c
+++ b/locale/programs/ld-time.c
@@ -491,8 +491,8 @@ time_output (struct localedef_t *locale, struct charmap_t *charmap,
   struct locale_time_t *time = locale->categories[LC_TIME].time;
   struct iovec iov[2 + _NL_ITEM_INDEX (_NL_NUM_LC_TIME)
 		  + time->num_era - 1
-		  + 3 * 99
-		  + 1 + (time->num_era * 10 - 1) * 2];
+		  + 2 * 99
+		  + 1 + time->num_era * 10 - 1];
   struct locale_file data;
   uint32_t idx[_NL_ITEM_INDEX (_NL_NUM_LC_TIME)];
   size_t cnt, last_idx, num, n;
@@ -839,8 +839,8 @@ time_output (struct localedef_t *locale, struct charmap_t *charmap,
 
   assert (cnt == (_NL_ITEM_INDEX (_NL_NUM_LC_TIME)
 		  + time->num_era - 1
-		  + 3 * 99
-		  + 1 + (time->num_era * 10 - 1) * 2));
+		  + 2 * 99
+		  + 1 + time->num_era * 10 - 1));
   assert (last_idx  == _NL_ITEM_INDEX (_NL_NUM_LC_TIME));
 
   write_locale_data (output_path, "LC_TIME", 2 + cnt, iov);