From ceade91071f02195295da9397737a405ff58b651 Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Fri, 2 Nov 2001 15:51:15 +0000 Subject: [PATCH] gpgme/ 2001-11-02 Marcus Brinkmann * rungpg.c (pipemode_copy): Change type of NBYTES to size_t. * key.c: Include string.h. * data.c: Likewise. * recipient.c: Likewise. tests/ 2001-11-02 Marcus Brinkmann * t-data.c: Include stddef.h. (read_once_test): Change type of READ to size_t. (read_test): Likewise. (write_test): Likewise. --- trunk/gpgme/ChangeLog | 8 ++++++++ trunk/gpgme/data.c | 1 + trunk/gpgme/key.c | 1 + trunk/gpgme/recipient.c | 1 + trunk/gpgme/rungpg.c | 2 +- trunk/tests/ChangeLog | 7 +++++++ trunk/tests/t-data.c | 7 ++++--- 7 files changed, 23 insertions(+), 4 deletions(-) diff --git a/trunk/gpgme/ChangeLog b/trunk/gpgme/ChangeLog index 4e9a642..8e932b9 100644 --- a/trunk/gpgme/ChangeLog +++ b/trunk/gpgme/ChangeLog @@ -1,3 +1,11 @@ +2001-11-02 Marcus Brinkmann + + * rungpg.c (pipemode_copy): Change type of NBYTES to size_t. + + * key.c: Include string.h. + * data.c: Likewise. + * recipient.c: Likewise. + 2001-10-29 Marcus Brinkmann * context.h: New member signers_len. diff --git a/trunk/gpgme/data.c b/trunk/gpgme/data.c index 2a31361..6ba853d 100644 --- a/trunk/gpgme/data.c +++ b/trunk/gpgme/data.c @@ -22,6 +22,7 @@ #include #include #include +#include #include #include #include diff --git a/trunk/gpgme/key.c b/trunk/gpgme/key.c index 4db6ec1..51bd66b 100644 --- a/trunk/gpgme/key.c +++ b/trunk/gpgme/key.c @@ -22,6 +22,7 @@ #include #include #include +#include #include #include "util.h" diff --git a/trunk/gpgme/recipient.c b/trunk/gpgme/recipient.c index 5e3297f..284b658 100644 --- a/trunk/gpgme/recipient.c +++ b/trunk/gpgme/recipient.c @@ -22,6 +22,7 @@ #include #include #include +#include #include #include "util.h" diff --git a/trunk/gpgme/rungpg.c b/trunk/gpgme/rungpg.c index 7fb9034..cbc727c 100644 --- a/trunk/gpgme/rungpg.c +++ b/trunk/gpgme/rungpg.c @@ -1275,7 +1275,7 @@ static GpgmeError pipemode_copy (char *buffer, size_t length, size_t *nread, GpgmeData data ) { GpgmeError err; - int nbytes; + size_t nbytes; char tmp[1000], *s, *d; /* we can optimize this whole thing but for now we just diff --git a/trunk/tests/ChangeLog b/trunk/tests/ChangeLog index 153bd15..87ca830 100644 --- a/trunk/tests/ChangeLog +++ b/trunk/tests/ChangeLog @@ -1,3 +1,10 @@ +2001-11-02 Marcus Brinkmann + + * t-data.c: Include stddef.h. + (read_once_test): Change type of READ to size_t. + (read_test): Likewise. + (write_test): Likewise. + 2001-10-29 Marcus Brinkmann * t-signers.c: New file. diff --git a/trunk/tests/t-data.c b/trunk/tests/t-data.c index 47a8926..90099df 100644 --- a/trunk/tests/t-data.c +++ b/trunk/tests/t-data.c @@ -18,6 +18,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA */ +#include #include #include #include @@ -107,7 +108,7 @@ read_once_test (round_t round, GpgmeData data) { GpgmeError err; char buffer[1024]; - int read; + size_t read; err = gpgme_data_read (data, buffer, sizeof (buffer), &read); fail_if_err (err); @@ -133,7 +134,7 @@ read_test (round_t round, GpgmeData data) { GpgmeError err; char buffer[1024]; - int read; + size_t read; if (round == TEST_INOUT_NONE) { @@ -158,7 +159,7 @@ write_test (round_t round, GpgmeData data) { GpgmeError err; char buffer[1024]; - int read; + size_t read; err = gpgme_data_write (data, text, strlen (text)); fail_if_err (err); -- 2.26.2