Commit Diff


commit - 796c6e75d72a1fbd8ea1dd6ccaaaa57180eb3865
commit + 0d7a38c4ce99cf5367a242d0a1d41b51d4a742e8
blob - fca2ef662bd2b2e417763ce5cc271db5b181109c
blob + ab19646ef28f0d0c0d7c5a4ab18e94d2353629cc
--- gmid.c
+++ gmid.c
@@ -71,7 +71,8 @@ safe_setenv(const char *name, const char *val)
 }
 
 __attribute__ ((format (printf, 1, 2)))
-static inline void __dead
+__attribute__ ((__noreturn__))
+static inline void
 fatal(const char *fmt, ...)
 {
 	va_list ap;
@@ -992,4 +993,6 @@ main(int argc, char **argv)
 	close(sock6);
 	tls_free(ctx);
 	tls_config_free(conf);
+
+	return 0;
 }
blob - 25a52621b8daec5639c5aea29e6fcc492885e75d
blob + e145d1a626088989b5738e140f7480da9c5fac93
--- gmid.h
+++ gmid.h
@@ -37,10 +37,6 @@
 # define INFTIM -1
 #endif
 
-#ifndef __dead
-# define __dead
-#endif
-
 #define GEMINI_URL_LEN (1024+3)	/* URL max len + \r\n + \0 */
 
 /* large enough to hold a copy of a gemini URL and still have extra room */