]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Remove unused variable and function
authorAndrii Bordunov <andrew.bordunov@gmail.com>
Sat, 22 Oct 2011 18:59:17 +0000 (21:59 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 22 Oct 2011 18:59:17 +0000 (21:59 +0300)
src/wps/wps_upnp_ssdp.c

index c7fb1583c8a56cfad5ea8c1c1affc04b3157c9c6..4c4aebf667e9b8a6eb138ba658b2d83e0bea4230 100644 (file)
@@ -97,16 +97,6 @@ static int line_length(const char *l)
 }
 
 
-/* No. of chars excluding trailing whitespace */
-static int line_length_stripped(const char *l)
-{
-       const char *lp = l + line_length(l);
-       while (lp > l && !isgraph(lp[-1]))
-               lp--;
-       return lp - l;
-}
-
-
 static int str_starts(const char *str, const char *start)
 {
        return os_strncmp(str, start, os_strlen(start)) == 0;
@@ -530,7 +520,6 @@ static void ssdp_parse_msearch(struct upnp_wps_device_sm *sm,
 #ifndef CONFIG_NO_STDOUT_DEBUG
        const char *start = data;
 #endif /* CONFIG_NO_STDOUT_DEBUG */
-       const char *end;
        int got_host = 0;
        int got_st = 0, st_match = 0;
        int got_man = 0;
@@ -545,7 +534,6 @@ static void ssdp_parse_msearch(struct upnp_wps_device_sm *sm,
 
        /* Parse remaining lines */
        for (; *data != '\0'; data += line_length(data)) {
-               end = data + line_length_stripped(data);
                if (token_eq(data, "host")) {
                        /* The host line indicates who the packet
                         * is addressed to... but do we really care?