From 1ecdde3ced1e584039ae5bc0c03b0641b3e6ef7d 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. --- gpgme/ChangeLog | 8 ++++++++ gpgme/data.c | 1 + gpgme/key.c | 1 + gpgme/recipient.c | 1 + gpgme/rungpg.c | 2 +- tests/ChangeLog | 7 +++++++ tests/t-data.c | 7 ++++--- 7 files changed, 23 insertions(+), 4 deletions(-) diff --git a/gpgme/ChangeLog b/gpgme/ChangeLog index 4e9a642..8e932b9 100644 --- a/gpgme/ChangeLog +++ b/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/gpgme/data.c b/gpgme/data.c index 2a31361..6ba853d 100644 --- a/gpgme/data.c +++ b/gpgme/data.c @@ -22,6 +22,7 @@ #include #include #include +#include #include #include #include diff --git a/gpgme/key.c b/gpgme/key.c index 4db6ec1..51bd66b 100644 --- a/gpgme/key.c +++ b/gpgme/key.c @@ -22,6 +22,7 @@ #include #include #include +#include #include #include "util.h" diff --git a/gpgme/recipient.c b/gpgme/recipient.c index 5e3297f..284b658 100644 --- a/gpgme/recipient.c +++ b/gpgme/recipient.c @@ -22,6 +22,7 @@ #include #include #include +#include #include #include "util.h" diff --git a/gpgme/rungpg.c b/gpgme/rungpg.c index 7fb9034..cbc727c 100644 --- a/gpgme/rungpg.c +++ b/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/tests/ChangeLog b/tests/ChangeLog index 153bd15..87ca830 100644 --- a/tests/ChangeLog +++ b/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/tests/t-data.c b/tests/t-data.c index 47a8926..90099df 100644 --- a/tests/t-data.c +++ b/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