]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix warning unused in compat/strptime.c.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Mon, 5 Dec 2011 14:59:24 +0000 (14:59 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Mon, 5 Dec 2011 14:59:24 +0000 (14:59 +0000)
git-svn-id: file:///svn/unbound/trunk@2563 be551aaa-1e26-0410-a405-d3ace91eadb9

compat/strptime.c
doc/Changelog

index 47c7930621df30fc8aac8e741fbb89a18ab8648a..9a0caa535749584a491fdb78fd0a587e3bf33921 100644 (file)
@@ -106,12 +106,10 @@ str2int(const char **buf, int max)
 char *
 unbound_strptime(const char *s, const char *format, struct tm *tm)
 {
-       int c, alt_format, ret;
+       int c, ret;
        int split_year = 0;
 
        while ((c = *format) != '\0') {
-               alt_format = 0;
-
                /* whitespace, literal or format */
                if (isspace(c)) { /* whitespace */
                        /** whitespace matches zero or more whitespace characters in the
index 695e4f2d791369e21183bbe3bdd71c06cf188204..a779ffc72e28d180ee9e8725669a15ea2343c27b 100644 (file)
@@ -1,6 +1,7 @@
 5 December 2011: Wouter
        - Fix getaddrinfowithincludes on windows with fedora16 mingw32-gcc.
        - Fix warnings with gcc 4.6 in compat/inet_ntop.c.
+       - Fix warning unused in compat/strptime.c.
 
 2 December 2011: Wouter
        - configure generated with autoconf 2.68.