static int event_parse_ad_header(char *buf, int len, enum event_action *action,
char **device)
{
static int event_parse_ad_header(char *buf, int len, enum event_action *action,
char **device)
{
*action = EVENT_ACTION_REMOVE;
else if (streq(buf, "conf"))
*action = EVENT_ACTION_CONF;
*action = EVENT_ACTION_REMOVE;
else if (streq(buf, "conf"))
*action = EVENT_ACTION_CONF;
- result = event_parse_ad_header(buf, len, &action, &device);
+ headerlen = event_parse_ad_header(buf, len, &action, &device);