]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
fix compiler warning
authorAlan T. DeKok <aland@freeradius.org>
Tue, 19 Feb 2019 01:17:26 +0000 (20:17 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 19 Feb 2019 01:17:26 +0000 (20:17 -0500)
src/modules/rlm_isc_dhcp/rlm_isc_dhcp.c

index 25e3b2c2c9488c88c03d73da0edf425cc65a6c7d..74551382f9001f197c4c7e35e70d4382b15cde1c 100644 (file)
@@ -212,7 +212,6 @@ redo:
 static int read_token(rlm_isc_dhcp_tokenizer_t *state, FR_TOKEN hint, int semicolon, bool allow_rcbrace)
 {
        char *p;
-       int lineno;
 
 redo:
        /*
@@ -250,12 +249,6 @@ redo:
        state->token = state->ptr;
        state->saw_semicolon = false;
 
-       /*
-        *      Remember which line this input was read from.  Any
-        *      refill later will change the line number.
-        */
-       lineno = state->lineno;
-
        for (p = state->token; *p != '\0'; p++) {
                /*
                 *      "end of word" character.  It might be allowed
@@ -263,8 +256,7 @@ redo:
                 */
                if (*p == ';') {
                        if (semicolon == NO_SEMICOLON) {
-                               fr_strerror_printf("Syntax error in %s at line %d: Unexpected ';'",
-                                                  state->filename, state->lineno);
+                               fr_strerror_printf("unexpected ';'");
                                return -1;                      
                        }