diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2017-03-12 13:44:14 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2017-03-12 13:44:14 +0000 |
commit | 54d4b6e74bf539930db2cafbe075416894900076 (patch) | |
tree | 29df64c4ff1eddc3c692b82556e3dde5dc2ae0ee /src/minutils/s6-hostname.c | |
parent | 495d625add9e52b29a98c4fa2627a45d20d44849 (diff) | |
download | s6-linux-utils-54d4b6e74bf539930db2cafbe075416894900076.tar.gz s6-linux-utils-54d4b6e74bf539930db2cafbe075416894900076.tar.xz s6-linux-utils-54d4b6e74bf539930db2cafbe075416894900076.zip |
Fix a few omissions 2.3.0.0
Diffstat (limited to 'src/minutils/s6-hostname.c')
-rw-r--r-- | src/minutils/s6-hostname.c | 4 |
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 ; } |