From: Werner Koch Date: Wed, 14 Feb 2001 19:42:49 +0000 (+0000) Subject: W32 fixes X-Git-Tag: gpgme-0-2-0~3 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=04e0ea083aae051509b1fbd102dd3c4f236d8e11;p=gpgme.git W32 fixes --- diff --git a/gpgme/ChangeLog b/gpgme/ChangeLog index 7acb34c..bcb7135 100644 --- a/gpgme/ChangeLog +++ b/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/gpgme/rungpg.c b/gpgme/rungpg.c index 9b9e8ee..261c71f 100644 --- a/gpgme/rungpg.c +++ b/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/gpgme/types.h b/gpgme/types.h index 38d83b2..e5642e1 100644 --- a/gpgme/types.h +++ b/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/tests/t-verify.c b/tests/t-verify.c index 22ff158..9372a7c 100644 --- a/tests/t-verify.c +++ b/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) ) {