static void match_user_agent (const char *agent, int length, bool *matches, bool *exact_match) { if (length == 1 && *agent == '*') { *matches = true; *exact_match = false; } else if (BOUNDED_EQUAL_NO_CASE (agent, agent + length, "wget")) { *matches = true; *exact_match = true; } else { *matches = false; *exact_match = false; } }
static void match_user_agent (const char *agent, int length, int *matches, int *exact_match) { if (length == 1 && *agent == '*') { *matches = 1; *exact_match = 0; } else if (BOUNDED_EQUAL_NO_CASE (agent, agent + length, "wget")) { *matches = 1; *exact_match = 1; } else { *matches = 0; *exact_match = 0; } }