From: Werner Koch Date: Wed, 14 Feb 2001 19:42:49 +0000 (+0000) Subject: W32 fixes X-Git-Tag: gpgme-1.2.0@1385~1334 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=4fc55b4c3054156da43a616f68264a5e53a655e5;p=gpgme.git W32 fixes --- diff --git a/trunk/gpgme/ChangeLog b/trunk/gpgme/ChangeLog index 7acb34c..bcb7135 100644 --- a/trunk/gpgme/ChangeLog +++ b/trunk/gpgme/ChangeLog @@ -1,5 +1,9 @@ 2001-02-13 Werner Koch + * rungpg.c (struct reap_s): Replaced pid_t by int. + + * types.h: Add ulong typedef. + * rungpg.c (do_reaping,_gpgme_gpg_housecleaning): New. (_gpgme_gpg_release): Reap children. * io.h, posix-io.c (_gpgme_io_kill): New. diff --git a/trunk/gpgme/rungpg.c b/trunk/gpgme/rungpg.c index 9b9e8ee..261c71f 100644 --- a/trunk/gpgme/rungpg.c +++ b/trunk/gpgme/rungpg.c @@ -118,7 +118,7 @@ struct gpg_object_s { struct reap_s { struct reap_s *next; - pid_t pid; + int pid; time_t entered; int term_send; }; diff --git a/trunk/gpgme/types.h b/trunk/gpgme/types.h index 38d83b2..e5642e1 100644 --- a/trunk/gpgme/types.h +++ b/trunk/gpgme/types.h @@ -23,7 +23,12 @@ #include "gpgme.h" /* external objects and prototypes */ +#ifndef HAVE_BYTE_TYPEDEF typedef unsigned char byte; +#endif +#ifndef HAVE_ULONG_TYPEDEF +typedef unsigned long ulong; +#endif typedef enum { diff --git a/trunk/tests/t-verify.c b/trunk/tests/t-verify.c index 22ff158..9372a7c 100644 --- a/trunk/tests/t-verify.c +++ b/trunk/tests/t-verify.c @@ -111,7 +111,7 @@ print_sig_stat ( GpgmeCtx ctx, GpgmeSigStat status ) printf ("Verification Status: %s\n", status_string (status)); for(idx=0; (s=gpgme_get_sig_status (ctx, idx, &status, &created)); idx++ ) { - printf ("sig %d: created: %lu status: %s\n", idx, (ulong)created, + printf ("sig %d: created: %lu status: %s\n", idx, (unsigned long)created, status_string(status) ); printf ("sig %d: fpr/keyid=`%s'\n", idx, s ); if ( !gpgme_get_sig_key (ctx, idx, &key) ) {