mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
Fixed set but unused variable bugs
This commit is contained in:
parent
14442d2be0
commit
816bee1fa0
23 changed files with 84 additions and 80 deletions
|
@ -3425,12 +3425,11 @@ es_fread (void *ES__RESTRICT ptr, size_t size, size_t nitems,
|
|||
estream_t ES__RESTRICT stream)
|
||||
{
|
||||
size_t ret, bytes;
|
||||
int err;
|
||||
|
||||
if (size * nitems)
|
||||
{
|
||||
ESTREAM_LOCK (stream);
|
||||
err = es_readn (stream, ptr, size * nitems, &bytes);
|
||||
es_readn (stream, ptr, size * nitems, &bytes);
|
||||
ESTREAM_UNLOCK (stream);
|
||||
|
||||
ret = bytes / size;
|
||||
|
@ -3447,12 +3446,11 @@ es_fwrite (const void *ES__RESTRICT ptr, size_t size, size_t nitems,
|
|||
estream_t ES__RESTRICT stream)
|
||||
{
|
||||
size_t ret, bytes;
|
||||
int err;
|
||||
|
||||
if (size * nitems)
|
||||
{
|
||||
ESTREAM_LOCK (stream);
|
||||
err = es_writen (stream, ptr, size * nitems, &bytes);
|
||||
es_writen (stream, ptr, size * nitems, &bytes);
|
||||
ESTREAM_UNLOCK (stream);
|
||||
|
||||
ret = bytes / size;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue