diff options
author | Björn Jacke <bj@sernet.de> | 2012-06-13 22:02:53 +0200 |
---|---|---|
committer | Bjoern Jacke <bj@sernet.de> | 2012-06-13 23:57:57 +0200 |
commit | 6edb239f8ed724abaa594fbbac8c2eb6e485209e (patch) | |
tree | 00bbe805f885e335f703e91c1eaf1f4f92f1749a /lib/replace/strptime.c | |
parent | 6a3b3fa3b079072d6a4bc399e3e410a9bd09b42b (diff) | |
download | samba-6edb239f8ed724abaa594fbbac8c2eb6e485209e.tar.gz samba-6edb239f8ed724abaa594fbbac8c2eb6e485209e.tar.xz samba-6edb239f8ed724abaa594fbbac8c2eb6e485209e.zip |
replace: fix unused variable warning
e2747fc62c2acbab143c4971469e0a4fc36d8789 fixed ...
Autobuild-User(master): Björn Jacke <bj@sernet.de>
Autobuild-Date(master): Wed Jun 13 23:57:58 CEST 2012 on sn-devel-104
Diffstat (limited to 'lib/replace/strptime.c')
-rw-r--r-- | lib/replace/strptime.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/replace/strptime.c b/lib/replace/strptime.c index 0e40f7561a..20e5d8c39b 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; @@ -299,8 +300,10 @@ strptime_internal (rp, fmt, tm, decided, era_cnt) start_over: #endif +#ifdef _NL_CURRENT /* Make back up of current processing pointer. */ rp_backup = rp; +#endif switch (*fmt++) { |