From 27b82512d540f5251309171ef35c5461a163cc4f Mon Sep 17 00:00:00 2001 From: Ronnie Sahlberg Date: Sat, 5 Oct 2013 13:50:55 -0700 Subject: [PATCH] Remove 'inline'. Some compilers do not support it. --- lib/login.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/login.c b/lib/login.c index 0448ce2..bbfc09d 100644 --- a/lib/login.c +++ b/lib/login.c @@ -638,7 +638,7 @@ typedef struct MD5Context *gcry_md_hd_t; #define gcry_md_write MD5Update #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); *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); } -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]; 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)); } -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)); free(h);