2003-10-06 Marcus Brinkmann <marcus@g10code.de>
* ath.h [HAVE_SYS_SELECT_H]: Include <sys/select.h> for fd_set. [!HAVE_SYS_SELECT_H]: Include <sys/time.h>. * 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.
This commit is contained in:
parent
5168a8d5be
commit
4cb6f77a32
@ -1,5 +1,14 @@
|
|||||||
2003-10-06 Marcus Brinkmann <marcus@g10code.de>
|
2003-10-06 Marcus Brinkmann <marcus@g10code.de>
|
||||||
|
|
||||||
|
* ath.h [HAVE_SYS_SELECT_H]: Include <sys/select.h> for fd_set.
|
||||||
|
[!HAVE_SYS_SELECT_H]: Include <sys/time.h>.
|
||||||
|
|
||||||
|
* 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 <time.h>, <sys/time.h>, <sys/types.h>,
|
* rungpg.c: Do not include <time.h>, <sys/time.h>, <sys/types.h>,
|
||||||
<signal.h>, <fcntl.h>, or "unistd.h".
|
<signal.h>, <fcntl.h>, or "unistd.h".
|
||||||
|
|
||||||
|
@ -20,6 +20,11 @@
|
|||||||
#ifndef ATH_H
|
#ifndef ATH_H
|
||||||
#define ATH_H
|
#define ATH_H
|
||||||
|
|
||||||
|
#ifdef HAVE_SYS_SELECT_H
|
||||||
|
# include <sys/select.h>
|
||||||
|
#else
|
||||||
|
# include <sys/time.h>
|
||||||
|
#endif
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
|
|
||||||
|
@ -34,7 +34,7 @@
|
|||||||
represent. Returns -1 if one of the characters is not a
|
represent. Returns -1 if one of the characters is not a
|
||||||
hexadecimal digit. */
|
hexadecimal digit. */
|
||||||
int
|
int
|
||||||
_gpgme_hextobyte (const unsigned char *str)
|
_gpgme_hextobyte (const char *str)
|
||||||
{
|
{
|
||||||
int val = 0;
|
int val = 0;
|
||||||
int i;
|
int i;
|
||||||
|
@ -297,7 +297,7 @@ gpgme_validity_t;
|
|||||||
typedef enum
|
typedef enum
|
||||||
{
|
{
|
||||||
GPGME_PROTOCOL_OpenPGP = 0, /* The default mode. */
|
GPGME_PROTOCOL_OpenPGP = 0, /* The default mode. */
|
||||||
GPGME_PROTOCOL_CMS = 1,
|
GPGME_PROTOCOL_CMS = 1
|
||||||
}
|
}
|
||||||
gpgme_protocol_t;
|
gpgme_protocol_t;
|
||||||
|
|
||||||
|
@ -50,7 +50,7 @@ int asprintf (char **result, const char *format, ...);
|
|||||||
/* Convert two hexadecimal digits from STR to the value they
|
/* Convert two hexadecimal digits from STR to the value they
|
||||||
represent. Returns -1 if one of the characters is not a
|
represent. Returns -1 if one of the characters is not a
|
||||||
hexadecimal digit. */
|
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
|
/* 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
|
buffer *DESTP which is LEN bytes long. If LEN is zero, then a
|
||||||
|
Loading…
Reference in New Issue
Block a user