aboutsummaryrefslogtreecommitdiffstats
path: root/scd/scdaemon.c
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2017-02-16 02:49:37 +0000
committerNIIBE Yutaka <[email protected]>2017-02-16 02:49:37 +0000
commit7a666ccb44f43c4efbaa51c1ca16fc0b37c3399d (patch)
treea557e12e37a0d01c146809f0732dbb8d092e84ca /scd/scdaemon.c
parentlibdns: Workaround for bracketed numerical addresses. (diff)
downloadgnupg-7a666ccb44f43c4efbaa51c1ca16fc0b37c3399d.tar.gz
gnupg-7a666ccb44f43c4efbaa51c1ca16fc0b37c3399d.zip
scd: Minor fixes to silence compiler warnings.
* scd/app.c (app_reset): Initialize ERR. * scd/scdaemon.c (scd_kick_the_loop, handle_connections): Catch the return value. Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'scd/scdaemon.c')
-rw-r--r--scd/scdaemon.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/scd/scdaemon.c b/scd/scdaemon.c
index e4b0ef894..f7e9f83b5 100644
--- a/scd/scdaemon.c
+++ b/scd/scdaemon.c
@@ -1182,8 +1182,11 @@ start_connection_thread (void *arg)
void
scd_kick_the_loop (void)
{
+ int ret;
+
/* Kick the select loop. */
- write (notify_fd, "", 1);
+ ret = write (notify_fd, "", 1);
+ (void)ret;
}
/* Connection handler loop. Wait for connection requests and spawn a
@@ -1308,8 +1311,7 @@ handle_connections (int listen_fd)
{
char buf[256];
- read (pipe_fd[0], buf, sizeof buf);
- ret--;
+ ret = read (pipe_fd[0], buf, sizeof buf);
}
if (listen_fd != -1 && FD_ISSET (listen_fd, &read_fdset))