summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2015-02-16 14:24:10 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2015-02-16 14:24:10 +0000
commitb11bacf27cd92528f4c2e157414c43b9cebd2b4d (patch)
tree332cb7c517b9e08d30e093e8a6782a80ca5d9bb7
parent36eeb20b4c68dd630adb7c8c473343f5491a55ea (diff)
downloads6-2.1.1.0.tar.xz
One more spurious warning fixv2.1.1.1v2.1.1.0
-rw-r--r--src/libs6/s6_fdholder_store_async.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs6/s6_fdholder_store_async.c b/src/libs6/s6_fdholder_store_async.c
index 2f783b1..2113b32 100644
--- a/src/libs6/s6_fdholder_store_async.c
+++ b/src/libs6/s6_fdholder_store_async.c
@@ -11,7 +11,7 @@ int s6_fdholder_store_async (s6_fdholder_t *a, int fd, char const *id, tain_t co
{
unsigned int idlen = str_len(id) ;
char pack[2 + TAIN_PACK] = "S" ;
- siovec_t v[2] = { { .s = pack, .len = 2 + TAIN_PACK }, { .s = id, .len = idlen + 1 } } ;
+ siovec_t v[2] = { { .s = pack, .len = 2 + TAIN_PACK }, { .s = (char *)id, .len = idlen + 1 } } ;
unixmessage_v_t m = { .v = v, .vlen = 2, .fds = &fd, .nfds = 1 } ;
if (idlen > S6_FDHOLDER_ID_SIZE) return (errno = ENAMETOOLONG, 0) ;
tain_pack(pack + 1, limit) ;