aboutsummaryrefslogtreecommitdiffstats
path: root/dirmngr/server.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2015-11-27 16:58:51 +0000
committerWerner Koch <[email protected]>2015-11-27 17:32:26 +0000
commit501436ab0f9d8e7d56b2f5e344006be5f5a3c653 (patch)
tree67c45508c150ad8e9b3583f2def2490fe1786e6e /dirmngr/server.c
parentSilence unused variable or parameter warnings. (diff)
downloadgnupg-501436ab0f9d8e7d56b2f5e344006be5f5a3c653.tar.gz
gnupg-501436ab0f9d8e7d56b2f5e344006be5f5a3c653.zip
Silence compiler warnings related to not using assuan_fd_t.
* common/call-gpg.c (start_gpg): Use assuan_fd_t. Note that the declaration was already fixed by a previous change. * dirmngr/server.c (cmd_getinfo): Use assuan_fd_t. -- Note that this matters only for Windows and it does not harm as long as we can only build for 32 bit Windows withsizeof(int)==sizeof(void*). Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'dirmngr/server.c')
-rw-r--r--dirmngr/server.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dirmngr/server.c b/dirmngr/server.c
index 536354c2f..32c265b18 100644
--- a/dirmngr/server.c
+++ b/dirmngr/server.c
@@ -2126,8 +2126,8 @@ cmd_getinfo (assuan_context_t ctx, char *line)
#if ASSUAN_VERSION_NUMBER >= 0x020402
/* Check whether we can connect to the proxy. We use a
special feature introduced with libassuan 2.4.2. */
- int sock = assuan_sock_connect_byname (NULL, 0, 0, NULL,
- ASSUAN_SOCK_TOR);
+ assuan_fd_t sock = assuan_sock_connect_byname (NULL, 0, 0, NULL,
+ ASSUAN_SOCK_TOR);
if (sock == ASSUAN_INVALID_FD)
{
err = assuan_write_status