summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNIIBE Yutaka <gniibe@fsij.org>2023-05-16 14:51:08 +0900
committerNIIBE Yutaka <gniibe@fsij.org>2023-05-16 14:51:08 +0900
commit18edc4f89f9aa46a669031925176f241fd8d637f (patch)
treee6e8942b844a7469c994308c163fdd4db9f26303
parent69578137570956a31eaa5a9559dbcfbe6d9d9f23 (diff)
downloadlibassuan-18edc4f89f9aa46a669031925176f241fd8d637f.tar.gz
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 <gniibe@fsij.org>
-rw-r--r--src/system.c12
1 files 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 ();