mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-25 08:48:31 -05:00
Remove unused variable and function
This commit is contained in:
parent
f935bd4dc5
commit
d01b205378
@ -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)
|
static int str_starts(const char *str, const char *start)
|
||||||
{
|
{
|
||||||
return os_strncmp(str, start, os_strlen(start)) == 0;
|
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
|
#ifndef CONFIG_NO_STDOUT_DEBUG
|
||||||
const char *start = data;
|
const char *start = data;
|
||||||
#endif /* CONFIG_NO_STDOUT_DEBUG */
|
#endif /* CONFIG_NO_STDOUT_DEBUG */
|
||||||
const char *end;
|
|
||||||
int got_host = 0;
|
int got_host = 0;
|
||||||
int got_st = 0, st_match = 0;
|
int got_st = 0, st_match = 0;
|
||||||
int got_man = 0;
|
int got_man = 0;
|
||||||
@ -545,7 +534,6 @@ static void ssdp_parse_msearch(struct upnp_wps_device_sm *sm,
|
|||||||
|
|
||||||
/* Parse remaining lines */
|
/* Parse remaining lines */
|
||||||
for (; *data != '\0'; data += line_length(data)) {
|
for (; *data != '\0'; data += line_length(data)) {
|
||||||
end = data + line_length_stripped(data);
|
|
||||||
if (token_eq(data, "host")) {
|
if (token_eq(data, "host")) {
|
||||||
/* The host line indicates who the packet
|
/* The host line indicates who the packet
|
||||||
* is addressed to... but do we really care?
|
* is addressed to... but do we really care?
|
||||||
|
Loading…
Reference in New Issue
Block a user