mirror of
git://git.gnupg.org/gnupg.git
synced 2025-06-29 22:17:59 +02:00
common: Avoid warnings about useless assignments.
* common/b64enc.c (b64enc_finish): Remove var assignment which is not used later. * common/iobuf.c (file_filter): Ditto. * common/tlv.c (do_find_tlv): Ditto. * common/userids.c (classify_user_id): Ditto. Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
1fbfa1bf0a
commit
e64317c15e
@ -348,7 +348,6 @@ b64enc_finish (struct b64state *state)
|
|||||||
{
|
{
|
||||||
for (idx=0; idx < 4; idx++)
|
for (idx=0; idx < 4; idx++)
|
||||||
es_putc (tmp[idx], state->stream);
|
es_putc (tmp[idx], state->stream);
|
||||||
idx = 0;
|
|
||||||
if (es_ferror (state->stream))
|
if (es_ferror (state->stream))
|
||||||
goto write_error;
|
goto write_error;
|
||||||
}
|
}
|
||||||
@ -356,7 +355,6 @@ b64enc_finish (struct b64state *state)
|
|||||||
{
|
{
|
||||||
for (idx=0; idx < 4; idx++)
|
for (idx=0; idx < 4; idx++)
|
||||||
putc (tmp[idx], state->fp);
|
putc (tmp[idx], state->fp);
|
||||||
idx = 0;
|
|
||||||
if (ferror (state->fp))
|
if (ferror (state->fp))
|
||||||
goto write_error;
|
goto write_error;
|
||||||
}
|
}
|
||||||
|
@ -589,7 +589,6 @@ file_filter (void *opaque, int control, iobuf_t chain, byte * buf,
|
|||||||
if (!a->keep_open)
|
if (!a->keep_open)
|
||||||
fd_cache_close (a->no_cache ? NULL : a->fname, f);
|
fd_cache_close (a->no_cache ? NULL : a->fname, f);
|
||||||
}
|
}
|
||||||
f = GNUPG_INVALID_FD;
|
|
||||||
xfree (a); /* We can free our context now. */
|
xfree (a); /* We can free our context now. */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -59,7 +59,6 @@ do_find_tlv (const unsigned char *buffer, size_t length,
|
|||||||
|
|
||||||
for (;;)
|
for (;;)
|
||||||
{
|
{
|
||||||
buffer = s;
|
|
||||||
if (n < 2)
|
if (n < 2)
|
||||||
return NULL; /* Buffer definitely too short for tag and length. */
|
return NULL; /* Buffer definitely too short for tag and length. */
|
||||||
if (!*s || *s == 0xff)
|
if (!*s || *s == 0xff)
|
||||||
|
@ -235,7 +235,6 @@ classify_user_id (const char *name, KEYDB_SEARCH_DESC *desc, int openpgp_hack)
|
|||||||
desc->u.fpr[i] = hextobyte(si);
|
desc->u.fpr[i] = hextobyte(si);
|
||||||
for (; i < 20; i++)
|
for (; i < 20; i++)
|
||||||
desc->u.fpr[i]= 0;
|
desc->u.fpr[i]= 0;
|
||||||
s = se + 1;
|
|
||||||
mode = KEYDB_SEARCH_MODE_FPR;
|
mode = KEYDB_SEARCH_MODE_FPR;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user