ipc: fix warning
authorNicolas Williams <nico@twosigma.com>
Thu, 10 Oct 2019 01:22:29 +0000 (20:22 -0500)
committerNicolas Williams <nico@twosigma.com>
Thu, 10 Oct 2019 01:53:30 +0000 (20:53 -0500)
lib/ipc/tc.c

index 4361800bcff497b91669f4ed3413fa07e486a511..91382aa35f68bf045cf988b2fd0d0b78934d7dfe 100644 (file)
@@ -64,7 +64,8 @@ static void
 reply(void *ctx, int errorcode, heim_idata *rep, heim_icred cred)
 {
     printf("got reply errorcode %d, rep %.*s\n", errorcode,
-           rep->length < INT_MAX ? rep->length : INT_MAX, rep->data);
+           rep->length < INT_MAX ? (int)rep->length : INT_MAX,
+           (char *)rep->data);
     heim_ipc_semaphore_signal((heim_isemaphore)ctx); /* tell caller we are done */
 }