summary refs log tree commit diff
path: root/time/strptime.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-11-28 22:13:22 +0000
committerUlrich Drepper <drepper@redhat.com>2000-11-28 22:13:22 +0000
commit5eefad82e96d213f69e216857ad638dab981f705 (patch)
tree909d96e78dddc1ce579fe279563ed6fb53784e37 /time/strptime.c
parentbffef76ec222e1330b8f2fb625a46726effbc9f7 (diff)
downloadglibc-5eefad82e96d213f69e216857ad638dab981f705.tar.gz
glibc-5eefad82e96d213f69e216857ad638dab981f705.tar.xz
glibc-5eefad82e96d213f69e216857ad638dab981f705.zip
Update.
2000-11-28  Ulrich Drepper  <drepper@redhat.com>

	* time/strftime.c: Add const where necessary to avoid warnings.
	* time/strptime.c (strptime_internal): Add casts to avoid warnings.
Diffstat (limited to 'time/strptime.c')
-rw-r--r--time/strptime.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/time/strptime.c b/time/strptime.c
index e9c10ab760..a527dfdb21 100644
--- a/time/strptime.c
+++ b/time/strptime.c
@@ -725,7 +725,7 @@ strptime_internal (rp, fmt, tm, decided, era_cnt)
 		    {
 		      num_eras = _NL_CURRENT_WORD (LC_TIME,
 						   _NL_TIME_ERA_NUM_ENTRIES);
-		      for (era_cnt = 0; era_cnt < num_eras;
+		      for (era_cnt = 0; era_cnt < (int) num_eras;
 			   ++era_cnt, rp = rp_backup)
 			{
 			  era = _nl_select_era_entry (era_cnt);
@@ -735,7 +735,7 @@ strptime_internal (rp, fmt, tm, decided, era_cnt)
 			      break;
 			    }
 			}
-		      if (era_cnt == num_eras)
+		      if (era_cnt == (int) num_eras)
 			{
 			  era_cnt = -1;
 			  if (*decided == loc)
@@ -764,14 +764,14 @@ strptime_internal (rp, fmt, tm, decided, era_cnt)
 		{
 		  num_eras = _NL_CURRENT_WORD (LC_TIME,
 					       _NL_TIME_ERA_NUM_ENTRIES);
-		  for (era_cnt = 0; era_cnt < num_eras;
+		  for (era_cnt = 0; era_cnt < (int) num_eras;
 		       ++era_cnt, rp = rp_backup)
 		    {
 		      era = _nl_select_era_entry (era_cnt);
 		      if (recursive (era->era_format))
 			break;
 		    }
-		  if (era_cnt == num_eras)
+		  if (era_cnt == (int) num_eras)
 		    {
 		      era_cnt = -1;
 		      if (*decided == loc)