From cf18d69d1e8b238c82940b4ea8173436bd53a1ce Mon Sep 17 00:00:00 2001 From: Sander Vrijders Date: Thu, 10 Aug 2017 15:33:36 +0200 Subject: lib, ipcpd, tools: Fix enum assignments This fixes several assignments to the wrong enum type. --- src/ipcpd/ipcp.c | 5 ----- src/ipcpd/normal/dht.c | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) (limited to 'src/ipcpd') diff --git a/src/ipcpd/ipcp.c b/src/ipcpd/ipcp.c index b2afdf99..b54bf0b7 100644 --- a/src/ipcpd/ipcp.c +++ b/src/ipcpd/ipcp.c @@ -174,11 +174,6 @@ static void * mainloop(void * o) conf.type = conf_msg->ipcp_type; strcpy(conf.dif_info.dif_name, conf_msg->dif_info->dif_name); - if (conf.dif_info.dif_name == NULL) { - log_err("No DIF name provided."); - ret_msg.result = -1; - break; - } if (conf_msg->ipcp_type == IPCP_NORMAL) { conf.addr_size = conf_msg->addr_size; conf.fd_size = conf_msg->fd_size; diff --git a/src/ipcpd/normal/dht.c b/src/ipcpd/normal/dht.c index 954ca670..5c294c00 100644 --- a/src/ipcpd/normal/dht.c +++ b/src/ipcpd/normal/dht.c @@ -630,7 +630,7 @@ static void lookup_destroy(struct lookup * lu) case LU_DONE: case LU_UPDATE: case LU_COMPLETE: - lu->state = REQ_NULL; + lu->state = LU_NULL; break; case LU_NULL: default: -- cgit v1.2.3