start: move variable into tighter scope

parent 7a8959d5
...@@ -452,7 +452,6 @@ int lxc_serve_state_clients(const char *name, struct lxc_handler *handler, ...@@ -452,7 +452,6 @@ int lxc_serve_state_clients(const char *name, struct lxc_handler *handler,
size_t retlen; size_t retlen;
ssize_t ret; ssize_t ret;
struct lxc_list *cur, *next; struct lxc_list *cur, *next;
struct lxc_state_client *client;
struct lxc_msg msg = {.type = lxc_msg_state, .value = state}; struct lxc_msg msg = {.type = lxc_msg_state, .value = state};
if (state == THAWED) if (state == THAWED)
...@@ -472,7 +471,7 @@ int lxc_serve_state_clients(const char *name, struct lxc_handler *handler, ...@@ -472,7 +471,7 @@ int lxc_serve_state_clients(const char *name, struct lxc_handler *handler,
return -E2BIG; return -E2BIG;
lxc_list_for_each_safe(cur, &handler->conf->state_clients, next) { lxc_list_for_each_safe(cur, &handler->conf->state_clients, next) {
client = cur->elem; struct lxc_state_client *client = cur->elem;
if (client->states[state] == 0) { if (client->states[state] == 0) {
TRACE("State %s not registered for state client %d", TRACE("State %s not registered for state client %d",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment