about summary refs log tree commit diff
path: root/src/libs6/s6_svstatus_unpack.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2017-03-12 11:59:43 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2017-03-12 11:59:43 +0000
commitc60ebd422171808ad58b936914055397bb205bef (patch)
tree7db3e5728d72ad209f8e22b9eb9f337e0b0c3e58 /src/libs6/s6_svstatus_unpack.c
parente28fe5908a91d8795ca9923d64eeed7d3e898434 (diff)
downloads6-c60ebd422171808ad58b936914055397bb205bef.tar.gz
s6-c60ebd422171808ad58b936914055397bb205bef.tar.xz
s6-c60ebd422171808ad58b936914055397bb205bef.zip
Adapt to skalibs-2.5.0.0
Diffstat (limited to 'src/libs6/s6_svstatus_unpack.c')
-rw-r--r--src/libs6/s6_svstatus_unpack.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libs6/s6_svstatus_unpack.c b/src/libs6/s6_svstatus_unpack.c
index 6ec2f02..dcd923a 100644
--- a/src/libs6/s6_svstatus_unpack.c
+++ b/src/libs6/s6_svstatus_unpack.c
@@ -1,21 +1,21 @@
 /* ISC license. */
 
 #include <stdint.h>
-#include <skalibs/uint16.h>
 #include <skalibs/uint64.h>
+#include <skalibs/types.h>
 #include <skalibs/tai.h>
 #include <s6/s6-supervise.h>
 
 void s6_svstatus_unpack (char const *pack, s6_svstatus_t *sv)
 {
-  uint64 pid ;
+  uint64_t pid ;
   uint16_t wstat ;
   tain_unpack(pack, &sv->stamp) ;
   tain_unpack(pack + 12, &sv->readystamp) ;
   uint64_unpack_big(pack + 24, &pid) ;
-  sv->pid = (pid_t)pid ;
+  sv->pid = pid ;
   uint16_unpack_big(pack + 32, &wstat) ;
-  sv->wstat = (int)wstat ;
+  sv->wstat = wstat ;
   sv->flagpaused = pack[34] & 1 ;
   sv->flagfinishing = !!(pack[34] & 2) ;
   sv->flagwant = !!(pack[34] & 4) ;