summaryrefslogtreecommitdiff
path: root/src/libs6/s6lock_acquire.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2017-03-13 23:19:47 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2017-03-13 23:19:47 +0000
commit398f9684624eb00075af938730cad805d7bdebfd (patch)
tree39f62c903b90364970cc46a36f6fc61acef4dc1d /src/libs6/s6lock_acquire.c
parent046a7c08c3c1e059be55ebdf49af66f5aee4800b (diff)
downloads6-398f9684624eb00075af938730cad805d7bdebfd.tar.xz
Cleanup of superfluous includes
Diffstat (limited to 'src/libs6/s6lock_acquire.c')
-rw-r--r--src/libs6/s6lock_acquire.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libs6/s6lock_acquire.c b/src/libs6/s6lock_acquire.c
index d9b4170..b9791bf 100644
--- a/src/libs6/s6lock_acquire.c
+++ b/src/libs6/s6lock_acquire.c
@@ -4,7 +4,8 @@
#include <string.h>
#include <stdint.h>
#include <errno.h>
-#include <skalibs/types.h>
+#include <skalibs/uint16.h>
+#include <skalibs/uint32.h>
#include <skalibs/tai.h>
#include <skalibs/gensetdyn.h>
#include <skalibs/skaclient.h>
@@ -16,7 +17,7 @@ int s6lock_acquire (s6lock_t *a, uint16_t *u, char const *path, uint32_t options
char err ;
char tmp[23] = "--<" ;
struct iovec v[2] = { { .iov_base = tmp, .iov_len = 23 }, { .iov_base = (char *)path, .iov_len = pathlen + 1 } } ;
- unsigned int i ;
+ uint32_t i ;
if (pathlen > UINT32_MAX) return (errno = ENAMETOOLONG, 0) ;
if (!gensetdyn_new(&a->data, &i)) return 0 ;
if (i > UINT16_MAX)