From 18edc4f89f9aa46a669031925176f241fd8d637f Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Tue, 16 May 2023 14:51:08 +0900 Subject: Fix wrong return type for functions. * src/system.c (_assuan_recvmsg, _assuan_sendmsg): Fix to int. (_assuan_waitpid): Fix to pid_t. Signed-off-by: NIIBE Yutaka --- src/system.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/system.c b/src/system.c index 5f309d0..6638ece 100644 --- a/src/system.c +++ b/src/system.c @@ -290,7 +290,7 @@ _assuan_recvmsg (assuan_context_t ctx, assuan_fd_t fd, assuan_msghdr_t msg, int flags) { #if DEBUG_SYSIO - ssize_t res; + int res; TRACE_BEG3 (ctx, ASSUAN_LOG_SYSIO, "_assuan_recvmsg", ctx, "fd=0x%x, msg=%p, flags=0x%x", fd, msg, flags); if (ctx->system.version) @@ -325,7 +325,7 @@ _assuan_recvmsg (assuan_context_t ctx, assuan_fd_t fd, assuan_msghdr_t msg, return (ctx->system.recvmsg) (ctx, fd, msg, flags); else { - ssize_t res; + int res; _assuan_pre_syscall (); res = __assuan_recvmsg (ctx, fd, msg, flags); _assuan_post_syscall (); @@ -341,7 +341,7 @@ _assuan_sendmsg (assuan_context_t ctx, assuan_fd_t fd, assuan_msghdr_t msg, int flags) { #if DEBUG_SYSIO - ssize_t res; + int res; TRACE_BEG3 (ctx, ASSUAN_LOG_SYSIO, "_assuan_sendmsg", ctx, "fd=0x%x, msg=%p, flags=0x%x", fd, msg, flags); { @@ -375,7 +375,7 @@ _assuan_sendmsg (assuan_context_t ctx, assuan_fd_t fd, assuan_msghdr_t msg, return (ctx->system.sendmsg) (ctx, fd, msg, flags); else { - ssize_t res; + int res; _assuan_pre_syscall (); res = __assuan_sendmsg (ctx, fd, msg, flags); _assuan_post_syscall (); @@ -453,7 +453,7 @@ _assuan_waitpid (assuan_context_t ctx, pid_t pid, int action, int *status, int options) { #if DEBUG_SYSIO - ssize_t res; + pid_t res; TRACE_BEG4 (ctx, ASSUAN_LOG_SYSIO, "_assuan_waitpid", ctx, "pid=%i, action=%i, status=%p, options=%i", pid, action, status, options); @@ -471,7 +471,7 @@ _assuan_waitpid (assuan_context_t ctx, pid_t pid, int action, return (ctx->system.waitpid) (ctx, pid, action, status, options); else { - ssize_t res; + pid_t res; _assuan_pre_syscall (); res = __assuan_waitpid (ctx, pid, action, status, options); _assuan_post_syscall (); -- cgit v1.2.1