summaryrefslogtreecommitdiff
path: root/src/minutils/s6-hostname.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/minutils/s6-hostname.c')
-rw-r--r--src/minutils/s6-hostname.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/minutils/s6-hostname.c b/src/minutils/s6-hostname.c
index deb525b..9d71cbe 100644
--- a/src/minutils/s6-hostname.c
+++ b/src/minutils/s6-hostname.c
@@ -5,7 +5,7 @@
#endif
#include <unistd.h>
-#include <skalibs/bytestr.h>
+#include <string.h>
#include <skalibs/allreadwrite.h>
#include <skalibs/strerr2.h>
#include <skalibs/stralloc.h>
@@ -25,7 +25,7 @@ static int getit (void)
static int setit (char const *h)
{
- if (sethostname(h, str_len(h)) < 0)
+ if (sethostname(h, strlen(h)) < 0)
strerr_diefu1sys(111, "set hostname") ;
return 0 ;
}