From faa75476e488c69a04a7eeb6e407d8960c23cc08 Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Mon, 6 Oct 2003 13:24:13 +0000 Subject: [PATCH] 2003-10-06 Marcus Brinkmann * ath.h [HAVE_SYS_SELECT_H]: Include for fd_set. [!HAVE_SYS_SELECT_H]: Include . * conversion.c (_gpgme_hextobyte): Drop "unsigned" from type of SRC argument. * util.h (_gpgme_hextobyte): Likewise for prototype. * gpgme.h: Remove trailing comma in enum. --- trunk/gpgme/ChangeLog | 9 +++++++++ trunk/gpgme/ath.h | 5 +++++ trunk/gpgme/conversion.c | 2 +- trunk/gpgme/gpgme.h | 2 +- trunk/gpgme/util.h | 2 +- 5 files changed, 17 insertions(+), 3 deletions(-) diff --git a/trunk/gpgme/ChangeLog b/trunk/gpgme/ChangeLog index 42929de..a817a1e 100644 --- a/trunk/gpgme/ChangeLog +++ b/trunk/gpgme/ChangeLog @@ -1,5 +1,14 @@ 2003-10-06 Marcus Brinkmann + * ath.h [HAVE_SYS_SELECT_H]: Include for fd_set. + [!HAVE_SYS_SELECT_H]: Include . + + * conversion.c (_gpgme_hextobyte): Drop "unsigned" from type of + SRC argument. + * util.h (_gpgme_hextobyte): Likewise for prototype. + + * gpgme.h: Remove trailing comma in enum. + * rungpg.c: Do not include , , , , , or "unistd.h". diff --git a/trunk/gpgme/ath.h b/trunk/gpgme/ath.h index 54f74d9..07d19ad 100644 --- a/trunk/gpgme/ath.h +++ b/trunk/gpgme/ath.h @@ -20,6 +20,11 @@ #ifndef ATH_H #define ATH_H +#ifdef HAVE_SYS_SELECT_H +# include +#else +# include +#endif #include #include diff --git a/trunk/gpgme/conversion.c b/trunk/gpgme/conversion.c index d889aeb..25de269 100644 --- a/trunk/gpgme/conversion.c +++ b/trunk/gpgme/conversion.c @@ -34,7 +34,7 @@ represent. Returns -1 if one of the characters is not a hexadecimal digit. */ int -_gpgme_hextobyte (const unsigned char *str) +_gpgme_hextobyte (const char *str) { int val = 0; int i; diff --git a/trunk/gpgme/gpgme.h b/trunk/gpgme/gpgme.h index bed0314..aa46fe8 100644 --- a/trunk/gpgme/gpgme.h +++ b/trunk/gpgme/gpgme.h @@ -297,7 +297,7 @@ gpgme_validity_t; typedef enum { GPGME_PROTOCOL_OpenPGP = 0, /* The default mode. */ - GPGME_PROTOCOL_CMS = 1, + GPGME_PROTOCOL_CMS = 1 } gpgme_protocol_t; diff --git a/trunk/gpgme/util.h b/trunk/gpgme/util.h index c6abc45..c087355 100644 --- a/trunk/gpgme/util.h +++ b/trunk/gpgme/util.h @@ -50,7 +50,7 @@ int asprintf (char **result, const char *format, ...); /* Convert two hexadecimal digits from STR to the value they represent. Returns -1 if one of the characters is not a hexadecimal digit. */ -int _gpgme_hextobyte (const unsigned char *str); +int _gpgme_hextobyte (const char *str); /* Decode the C formatted string SRC and store the result in the buffer *DESTP which is LEN bytes long. If LEN is zero, then a -- 2.26.2