diff options
author | Omar Polo <op@omarpolo.com> | 2021-02-12 12:47:20 +0000 |
---|---|---|
committer | Omar Polo <op@omarpolo.com> | 2021-02-12 12:47:20 +0000 |
commit | 52418c8d828bc25e0e84cc25d5e349a84be0b397 (patch) | |
tree | 480166acacfecd667dcd69e68df8f6a305792277 /gmid.h | |
parent | 3cb3dd4d422cdead2dd09f1e3ce3eff35a9e6dc8 (diff) |
fix various compilation errors
Include gmid.h as first header in every file, as it then includes
config.h (that defines _GNU_SOURCE for instance).
Fix also a warning about unsigned vs signed const char pointers in
openssl.
Diffstat (limited to 'gmid.h')
-rw-r--r-- | gmid.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -17,6 +17,8 @@ #ifndef GMID_H #define GMID_H +#include "config.h" + #include <sys/socket.h> #include <sys/types.h> @@ -33,8 +35,6 @@ #include <openssl/x509.h> -#include "config.h" - #define GEMINI_URL_LEN (1024+3) /* URL max len + \r\n + \0 */ #define SUCCESS 20 |