commit ba764589ba367fb481310d0e23ef985a2f834051
parent 8d922011703ddbea689ee7dd6baaedeb4c6b2c02
Author: sin <sin@2f30.org>
Date: Fri, 18 Apr 2014 09:39:19 +0100
For consistency with other similar constructs in ubase
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sysctl.c b/sysctl.c
@@ -98,7 +98,7 @@ setsysctl(char *variable, char *value)
return -1;
n = write(fd, value, strlen(value));
- if (n != (ssize_t)strlen(value)) {
+ if ((size_t)n != strlen(value)) {
close(fd);
return -1;
}