mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-03 12:11:33 +01:00
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 <gniibe@fsij.org>
This commit is contained in:
parent
a3509e12b6
commit
7a666ccb44
@ -139,7 +139,7 @@ check_application_conflict (const char *name, app_t app)
|
|||||||
gpg_error_t
|
gpg_error_t
|
||||||
app_reset (app_t app, ctrl_t ctrl, int send_reset)
|
app_reset (app_t app, ctrl_t ctrl, int send_reset)
|
||||||
{
|
{
|
||||||
gpg_error_t err;
|
gpg_error_t err = 0;
|
||||||
|
|
||||||
if (send_reset)
|
if (send_reset)
|
||||||
{
|
{
|
||||||
|
@ -1182,8 +1182,11 @@ start_connection_thread (void *arg)
|
|||||||
void
|
void
|
||||||
scd_kick_the_loop (void)
|
scd_kick_the_loop (void)
|
||||||
{
|
{
|
||||||
|
int ret;
|
||||||
|
|
||||||
/* Kick the select loop. */
|
/* 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
|
/* Connection handler loop. Wait for connection requests and spawn a
|
||||||
@ -1308,8 +1311,7 @@ handle_connections (int listen_fd)
|
|||||||
{
|
{
|
||||||
char buf[256];
|
char buf[256];
|
||||||
|
|
||||||
read (pipe_fd[0], buf, sizeof buf);
|
ret = read (pipe_fd[0], buf, sizeof buf);
|
||||||
ret--;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (listen_fd != -1 && FD_ISSET (listen_fd, &read_fdset))
|
if (listen_fd != -1 && FD_ISSET (listen_fd, &read_fdset))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user