summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjörn Jacke <bj@sernet.de>2012-06-13 18:55:56 +0200
committerBjörn Jacke <bj@sernet.de>2012-06-13 18:55:56 +0200
commite2747fc62c2acbab143c4971469e0a4fc36d8789 (patch)
treeb5bb0363a3052fcdec8c2599f0035822ce7b7d27
parentdba3b2e0b62d385599057a6e6b5d604e1e70394c (diff)
downloadsamba-e2747fc62c2acbab143c4971469e0a4fc36d8789.tar.gz
samba-e2747fc62c2acbab143c4971469e0a4fc36d8789.tar.bz2
samba-e2747fc62c2acbab143c4971469e0a4fc36d8789.zip
replace: fix unused variable warning
found by the IRIX compiler
-rw-r--r--lib/replace/strptime.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/replace/strptime.c b/lib/replace/strptime.c
index 0e40f7561a..181fd12ba9 100644
--- a/lib/replace/strptime.c
+++ b/lib/replace/strptime.c
@@ -251,7 +251,6 @@ strptime_internal (rp, fmt, tm, decided, era_cnt)
enum locale_status *decided;
int era_cnt;
{
- const char *rp_backup;
int cnt;
size_t val;
int have_I, is_pm;
@@ -261,15 +260,17 @@ strptime_internal (rp, fmt, tm, decided, era_cnt)
int have_yday;
int have_mon, have_mday;
#ifdef _NL_CURRENT
+ const char *rp_backup;
size_t num_eras;
-#endif
struct era_entry *era;
+ era = NULL;
+#endif
+
have_I = is_pm = 0;
century = -1;
want_century = 0;
want_era = 0;
- era = NULL;
have_wday = want_xday = have_yday = have_mon = have_mday = 0;
@@ -297,10 +298,10 @@ strptime_internal (rp, fmt, tm, decided, era_cnt)
#ifndef _NL_CURRENT
/* We need this for handling the `E' modifier. */
start_over:
-#endif
/* Make back up of current processing pointer. */
rp_backup = rp;
+#endif
switch (*fmt++)
{