gpgme/
2001-11-02 Marcus Brinkmann <marcus@g10code.de> * 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 <marcus@g10code.de> * t-data.c: Include stddef.h. (read_once_test): Change type of READ to size_t. (read_test): Likewise. (write_test): Likewise.
This commit is contained in:
parent
7e53360206
commit
1ecdde3ced
@ -1,3 +1,11 @@
|
|||||||
|
2001-11-02 Marcus Brinkmann <marcus@g10code.de>
|
||||||
|
|
||||||
|
* 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 <marcus@g10code.de>
|
2001-10-29 Marcus Brinkmann <marcus@g10code.de>
|
||||||
|
|
||||||
* context.h: New member signers_len.
|
* context.h: New member signers_len.
|
||||||
|
@ -22,6 +22,7 @@
|
|||||||
#include <config.h>
|
#include <config.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
#include <string.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
@ -22,6 +22,7 @@
|
|||||||
#include <config.h>
|
#include <config.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
#include <string.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
|
@ -22,6 +22,7 @@
|
|||||||
#include <config.h>
|
#include <config.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
#include <string.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
|
@ -1275,7 +1275,7 @@ static GpgmeError
|
|||||||
pipemode_copy (char *buffer, size_t length, size_t *nread, GpgmeData data )
|
pipemode_copy (char *buffer, size_t length, size_t *nread, GpgmeData data )
|
||||||
{
|
{
|
||||||
GpgmeError err;
|
GpgmeError err;
|
||||||
int nbytes;
|
size_t nbytes;
|
||||||
char tmp[1000], *s, *d;
|
char tmp[1000], *s, *d;
|
||||||
|
|
||||||
/* we can optimize this whole thing but for now we just
|
/* we can optimize this whole thing but for now we just
|
||||||
|
@ -1,3 +1,10 @@
|
|||||||
|
2001-11-02 Marcus Brinkmann <marcus@g10code.de>
|
||||||
|
|
||||||
|
* 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 <marcus@g10code.de>
|
2001-10-29 Marcus Brinkmann <marcus@g10code.de>
|
||||||
|
|
||||||
* t-signers.c: New file.
|
* t-signers.c: New file.
|
||||||
|
@ -18,6 +18,7 @@
|
|||||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <stddef.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
@ -107,7 +108,7 @@ read_once_test (round_t round, GpgmeData data)
|
|||||||
{
|
{
|
||||||
GpgmeError err;
|
GpgmeError err;
|
||||||
char buffer[1024];
|
char buffer[1024];
|
||||||
int read;
|
size_t read;
|
||||||
|
|
||||||
err = gpgme_data_read (data, buffer, sizeof (buffer), &read);
|
err = gpgme_data_read (data, buffer, sizeof (buffer), &read);
|
||||||
fail_if_err (err);
|
fail_if_err (err);
|
||||||
@ -133,7 +134,7 @@ read_test (round_t round, GpgmeData data)
|
|||||||
{
|
{
|
||||||
GpgmeError err;
|
GpgmeError err;
|
||||||
char buffer[1024];
|
char buffer[1024];
|
||||||
int read;
|
size_t read;
|
||||||
|
|
||||||
if (round == TEST_INOUT_NONE)
|
if (round == TEST_INOUT_NONE)
|
||||||
{
|
{
|
||||||
@ -158,7 +159,7 @@ write_test (round_t round, GpgmeData data)
|
|||||||
{
|
{
|
||||||
GpgmeError err;
|
GpgmeError err;
|
||||||
char buffer[1024];
|
char buffer[1024];
|
||||||
int read;
|
size_t read;
|
||||||
|
|
||||||
err = gpgme_data_write (data, text, strlen (text));
|
err = gpgme_data_write (data, text, strlen (text));
|
||||||
fail_if_err (err);
|
fail_if_err (err);
|
||||||
|
Loading…
Reference in New Issue
Block a user