Remove 'inline'. Some compilers do not support it.

This commit is contained in:
Ronnie Sahlberg
2013-10-05 13:50:55 -07:00
parent 1828481ba2
commit 27b82512d5

View File

@@ -638,7 +638,7 @@ typedef struct MD5Context *gcry_md_hd_t;
#define gcry_md_write MD5Update #define gcry_md_write MD5Update
#define GCRY_MD_MD5 1 #define GCRY_MD_MD5 1
static inline void gcry_md_open(gcry_md_hd_t *hd, int algo, unsigned int flags) static void gcry_md_open(gcry_md_hd_t *hd, int algo, unsigned int flags)
{ {
assert(algo == GCRY_MD_MD5 && flags == 0); assert(algo == GCRY_MD_MD5 && flags == 0);
*hd = malloc(sizeof(struct MD5Context)); *hd = malloc(sizeof(struct MD5Context));
@@ -647,12 +647,12 @@ static inline void gcry_md_open(gcry_md_hd_t *hd, int algo, unsigned int flags)
} }
} }
static inline void gcry_md_putc(gcry_md_hd_t h, unsigned char c) static void gcry_md_putc(gcry_md_hd_t h, unsigned char c)
{ {
MD5Update(h, &c, 1); MD5Update(h, &c, 1);
} }
static inline char *gcry_md_read(gcry_md_hd_t h, int algo) static char *gcry_md_read(gcry_md_hd_t h, int algo)
{ {
unsigned char digest[16]; unsigned char digest[16];
assert(algo == 0 || algo == GCRY_MD_MD5); assert(algo == 0 || algo == GCRY_MD_MD5);
@@ -661,7 +661,7 @@ static inline char *gcry_md_read(gcry_md_hd_t h, int algo)
return memcpy(h->buf, digest, sizeof(digest)); return memcpy(h->buf, digest, sizeof(digest));
} }
static inline void gcry_md_close(gcry_md_hd_t h) static void gcry_md_close(gcry_md_hd_t h)
{ {
memset(h, 0, sizeof(*h)); memset(h, 0, sizeof(*h));
free(h); free(h);