summaryrefslogtreecommitdiff
path: root/src/ipcpd/local/main.c
diff options
context:
space:
mode:
authorDimitri Staessens <dimitri@ouroboros.rocks>2020-05-02 11:47:29 +0200
committerSander Vrijders <sander@ouroboros.rocks>2020-05-02 11:52:54 +0200
commit65054fafc577cd326832fb4f673ecadd93c778e2 (patch)
tree5460ee498c0518fadf903745865812628466db41 /src/ipcpd/local/main.c
parentae995c0f88e56680f5b8e18aa51ed6bee8776c6b (diff)
downloadouroboros-65054fafc577cd326832fb4f673ecadd93c778e2.tar.gz
ouroboros-65054fafc577cd326832fb4f673ecadd93c778e2.zip
ipcpd: Remove some unused variables0.17.4
The compiler spotted some variables that weren't really used. Signed-off-by: Dimitri Staessens <dimitri@ouroboros.rocks> Signed-off-by: Sander Vrijders <sander@ouroboros.rocks>
Diffstat (limited to 'src/ipcpd/local/main.c')
-rw-r--r--src/ipcpd/local/main.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ipcpd/local/main.c b/src/ipcpd/local/main.c
index a2e20017..fcf51626 100644
--- a/src/ipcpd/local/main.c
+++ b/src/ipcpd/local/main.c
@@ -250,7 +250,6 @@ static int ipcp_local_flow_alloc_resp(int fd,
struct timespec ts = {0, ALLOC_TIMEOUT * MILLION};
struct timespec abstime;
int out_fd = -1;
- int ret = -1;
clock_gettime(PTHREAD_COND_CLOCK, &abstime);
@@ -293,7 +292,7 @@ static int ipcp_local_flow_alloc_resp(int fd,
fset_add(local_data.flows, fd);
- if ((ret = ipcp_flow_alloc_reply(out_fd, response, data, len)) < 0)
+ if (ipcp_flow_alloc_reply(out_fd, response, data, len) < 0)
return -1;
log_info("Flow allocation completed, fds (%d, %d).", out_fd, fd);