summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sock.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sock.c b/sock.c
index e5f6eac..6c973ed 100644
--- a/sock.c
+++ b/sock.c
@@ -177,7 +177,8 @@ static void set_system_socket_mem(int which, int val)
slprintf(buff, sizeof(buff), "%d", val);
ret = write(fd, buff, strlen(buff));
- ret = ret;
+ if (ret < 0)
+ panic("Cannot set system socket memory!\n");
close(fd);
}