Fix some warnings

personal/stbuehler/wip
Stefan Bühler 12 years ago
parent f521719737
commit db6a989677
  1. 2
      src/main/condition.c
  2. 3
      src/main/plugin_core.c

@ -596,6 +596,8 @@ static liHandlerResult li_condition_check_eval_bool(liVRequest *vr, liCondition
case LI_COND_VALUE_HINT_SOCKADDR:
val = TRUE; /* just.. don't do this. */
break;
default:
return LI_HANDLER_ERROR;
}
*res = !cond->rvalue.b ^ val;

@ -2024,6 +2024,9 @@ static void plugin_core_prepare_worker(liServer *srv, liPlugin *p, liWorker *wrk
ERROR(srv, "couldn't set cpu affinity mask for worker #%u: %s", wrk->ndx, g_strerror(errno));
}
}
#else
UNUSED(srv);
UNUSED(wrk);
#endif
}

Loading…
Cancel
Save