Fix Coverty CID #96208: Unchecked return value from library.

Replace `remove()` with our own `erase()` which checks the return value
and warns on actual real failure.

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson
2015-06-17 13:36:17 +02:00
parent 6c58a7d774
commit 1f19b50846
+1 -1
View File
@@ -262,7 +262,7 @@ int api_init(uev_ctx_t *ctx)
return 1;
}
remove(INIT_SOCKET);
erase(INIT_SOCKET);
if (-1 == bind(sd, (struct sockaddr*)&sun, sizeof(sun)))
goto error;