[hackers] [ubase] For consistency with other similar constructs in ubase || sin

From: <git_AT_suckless.org>
Date: Fri, 18 Apr 2014 10:40:19 +0200

commit ba764589ba367fb481310d0e23ef985a2f834051
Author: sin <sin_AT_2f30.org>
Date: Fri Apr 18 09:39:19 2014 +0100

    For consistency with other similar constructs in ubase

diff --git a/sysctl.c b/sysctl.c
index e4e75ec..a43a333 100644
--- a/sysctl.c
+++ b/sysctl.c
_AT_@ -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;
         }
Received on Fri Apr 18 2014 - 10:40:19 CEST

This archive was generated by hypermail 2.3.0 : Fri Apr 18 2014 - 10:48:13 CEST