diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2021-09-02 21:42:17 +0000 |
---|---|---|
committer | Laurent Bercot <ska@appnovation.com> | 2021-09-02 21:42:17 +0000 |
commit | 5ca66151f5f5916f843ea64d05fc460c602cc753 (patch) | |
tree | a13c188a26b767fd9ab2d63592e815cefe2485f6 | |
parent | 38ae9c27fff50c3d635673d45dadd5b5132afc90 (diff) | |
download | skabus-5ca66151f5f5916f843ea64d05fc460c602cc753.tar.gz skabus-5ca66151f5f5916f843ea64d05fc460c602cc753.tar.xz skabus-5ca66151f5f5916f843ea64d05fc460c602cc753.zip |
And more
Signed-off-by: Laurent Bercot <ska@appnovation.com>
-rw-r--r-- | src/pub/skabus-pubd.c | 4 | ||||
-rw-r--r-- | src/rpc/skabus-rpcd.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/pub/skabus-pubd.c b/src/pub/skabus-pubd.c index 8bbaae0..6103206 100644 --- a/src/pub/skabus-pubd.c +++ b/src/pub/skabus-pubd.c @@ -338,9 +338,9 @@ static inline int client_flush (uint32_t i, iopause_fd const *x) return 1 ; } -static int answer (client_t *c, char e) +static int answer (client_t *c, unsigned char e) { - unixmessage m = { .s = &e, .len = 1, .fds = 0, .nfds = 0 } ; + unixmessage m = { .s = (char *)&e, .len = 1, .fds = 0, .nfds = 0 } ; if (!unixmessage_put(&c->sync.out, &m)) return 0 ; client_setdeadline(c) ; return 1 ; diff --git a/src/rpc/skabus-rpcd.c b/src/rpc/skabus-rpcd.c index fae1042..25848f9 100644 --- a/src/rpc/skabus-rpcd.c +++ b/src/rpc/skabus-rpcd.c @@ -106,9 +106,9 @@ int parse_protocol_async (unixmessage const *m, void *p) typedef int hlparse_func (uint32_t, unixmessage *) ; typedef hlparse_func *hlparse_func_ref ; -static int answer (uint32_t cc, char e) +static int answer (uint32_t cc, unsigned char e) { - unixmessage m = { .s = &e, .len = 1, .fds = 0, .nfds = 0 } ; + unixmessage m = { .s = (char *)&e, .len = 1, .fds = 0, .nfds = 0 } ; client_t *c = CLIENT(cc) ; if (!unixmessage_put(&c->sync.out, &m)) return 0 ; if (client_isregistered(cc)) client_setdeadline(c) ; |