mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
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.
This commit is contained in:
parent
35266076e3
commit
4387ecb11c
5 changed files with 27 additions and 15 deletions
|
@ -279,8 +279,6 @@ outstream_reader_cb (void *cb_value, char *buffer, size_t count,
|
|||
size_t *r_nread)
|
||||
{
|
||||
struct outstream_cookie_s *cookie = cb_value;
|
||||
char *dst;
|
||||
const char *src;
|
||||
size_t nread = 0;
|
||||
int was_full = 0;
|
||||
|
||||
|
@ -288,7 +286,6 @@ outstream_reader_cb (void *cb_value, char *buffer, size_t count,
|
|||
return gpg_error (GPG_ERR_NOT_SUPPORTED); /* Rewind is not supported. */
|
||||
|
||||
*r_nread = 0;
|
||||
dst = buffer;
|
||||
|
||||
while (BUFFER_EMPTY(cookie))
|
||||
{
|
||||
|
@ -302,7 +299,6 @@ outstream_reader_cb (void *cb_value, char *buffer, size_t count,
|
|||
if (BUFFER_FULL(cookie))
|
||||
was_full = 1;
|
||||
|
||||
src = cookie->buffer + cookie->buffer_pos;
|
||||
nread = buffer_get_data (cookie, buffer, count);
|
||||
|
||||
if (was_full)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue