From: Jonathan McDowell Date: Mon, 31 May 2004 23:47:00 +0000 (+0000) Subject: cscvs to tla changeset 15 X-Git-Url: https://git.sommitrealweird.co.uk/onak.git/commitdiff_plain/4179d4a97b3a242b14ed023c2c3e8935a6e3e1e4 cscvs to tla changeset 15 Author: noodles Date: 2002/09/08 10:40:24 Updating test code. --- diff --git a/main.c b/main.c index 33b193d..c7bfe28 100644 --- a/main.c +++ b/main.c @@ -15,19 +15,19 @@ int getnextchar(void *ctx, size_t count, unsigned char *c) return (!read(0, c, count)); } -int putnextchar(void *ctx, unsigned char c) +int putnextchar(void *ctx, size_t count, unsigned char *c) { - return (!write(1, &c, 1)); + return (!write(1, c, count)); } int main(int argc, char *argv[]) { - struct openpgp_packet_list *packets = NULL, *newpackets = NULL; - struct openpgp_packet_list *list_end = NULL; - struct openpgp_publickey *keys = NULL; - struct openpgp_publickey *newkeys = NULL; - void *ctx = NULL; + struct openpgp_packet_list *packets = NULL; //, *newpackets = NULL; +// struct openpgp_packet_list *list_end = NULL; +// struct openpgp_publickey *keys = NULL; +// struct openpgp_publickey *newkeys = NULL; +// void *ctx = NULL; // fputs("Doing read_openpgp_stream():\n", stderr); // read_openpgp_stream(getnextchar, ctx, &packets);