diff options
author | Werner Koch <[email protected]> | 2014-03-07 08:46:44 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2014-03-07 18:05:41 +0000 |
commit | 4387ecb11cdb2addf738eb922c1b9f14c6c76efc (patch) | |
tree | 401d2885fa584262d3fe3b0a2daed4c23a24d95f /dirmngr/dirmngr-client.c | |
parent | dirmngr: Simplify strtok macro. (diff) | |
download | gnupg-4387ecb11cdb2addf738eb922c1b9f14c6c76efc.tar.gz gnupg-4387ecb11cdb2addf738eb922c1b9f14c6c76efc.zip |
Silence more warnings about unused vars and args.
* dirmngr/cdblib.c (cdb_init) [W32]: Remove unused var.
* dirmngr/dirmngr-client.c (start_dirmngr): s/int/assuan_fd_t/.
* dirmngr/dirmngr.c (w32_service_control): Mark unused args.
(call_real_main): New.
(main) [W32]: Use new function to match prototype.
(real_main) [W32]: Mark unused vars.
(handle_signal) [W32]: Do not build the function at all.
(handle_connections) [W32]: Do not define signo.
* dirmngr/ldap-wrapper-ce.c (outstream_reader_cb): Remove used vars.
* g10/tdbio.c (ftruncate) [DOSISH]: Define only if not yet defined.
Diffstat (limited to 'dirmngr/dirmngr-client.c')
-rw-r--r-- | dirmngr/dirmngr-client.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dirmngr/dirmngr-client.c b/dirmngr/dirmngr-client.c index 76f4710c3..da9744359 100644 --- a/dirmngr/dirmngr-client.c +++ b/dirmngr/dirmngr-client.c @@ -459,7 +459,7 @@ start_dirmngr (int only_daemon) { const char *pgmname; const char *argv[3]; - int no_close_list[3]; + assuan_fd_t no_close_list[3]; int i; if (only_daemon) @@ -486,7 +486,7 @@ start_dirmngr (int only_daemon) if (log_get_fd () != -1) no_close_list[i++] = assuan_fd_from_posix_fd (log_get_fd ()); no_close_list[i++] = assuan_fd_from_posix_fd (es_fileno (es_stderr)); - no_close_list[i] = -1; + no_close_list[i] = ASSUAN_INVALID_FD; /* Connect to the agent and perform initial handshaking. */ rc = assuan_pipe_connect (ctx, opt.dirmngr_program, argv, |