cscvs to tla changeset 15
authorJonathan McDowell <noodles@earth.li>
Mon, 31 May 2004 23:47:00 +0000 (23:47 +0000)
committerJonathan McDowell <noodles@earth.li>
Mon, 31 May 2004 23:47:00 +0000 (23:47 +0000)
Author: noodles
Date: 2002/09/08 10:40:24
Updating test code.

main.c

diff --git a/main.c b/main.c
index 33b193d7a458fd8afe500298548360771f0916d5..c7bfe28d5fc0b70357e7c257b8f685eb1da0e6fe 100644 (file)
--- 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);