]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
[master]
authorShawn Routhier <sar@isc.org>
Wed, 28 Nov 2012 20:55:32 +0000 (12:55 -0800)
committerShawn Routhier <sar@isc.org>
Wed, 28 Nov 2012 20:55:32 +0000 (12:55 -0800)
Remove unused variable.
[ISC-Bugs #31983]

RELNOTES
common/parse.c

index e9a198eccf5a1e1387d820cd7ffc15fa7b08d784..d7ea473972f900780eaf01dcf092f4a89f0b74cc 100644 (file)
--- a/RELNOTES
+++ b/RELNOTES
@@ -184,6 +184,9 @@ work on other platforms. Please report any problems and suggested fixes to
   loop when the peer names are mismatched.
   [ISC-Bugs #31231]
 
+- Remove an unused variable to keep compilers happy
+  [ISC-Bugs #31983]
+
                        Changes since 4.2.3
 
 ! Add a check for a null pointer before calling the regexec function.
index eb13d22ad451784f6ca7fb32bbbe101ae96af77c..ac8e6613e47469223d69601d9fe91c85a41ab94c 100644 (file)
@@ -1850,7 +1850,6 @@ int parse_base64 (data, cfile)
        struct data_string *data;
        struct parse *cfile;
 {
-       enum dhcp_token token;
        const char *val;
        int i, j, k;
        unsigned acc = 0;
@@ -1880,7 +1879,7 @@ int parse_base64 (data, cfile)
        do {
                unsigned l;
 
-               token = next_token(&val, &l, cfile);
+               (void)next_token(&val, &l, cfile);
                t = dmalloc(l + sizeof(*t), MDL);
                if (t == NULL)
                        log_fatal("no memory for base64 buffer.");
@@ -1892,7 +1891,7 @@ int parse_base64 (data, cfile)
                else
                        bufs = t;
                last = t;
-               token = peek_token(&val, NULL, cfile);
+               (void)peek_token(&val, NULL, cfile);
                valid_base64 = 1;
                for (i = 0; val[i]; i++) {
                        /* Check to see if the character is valid.  It