avoid __dead and return at the end of main

This commit is contained in:
Omar Polo 2021-01-11 15:28:25 +00:00
parent 796c6e75d7
commit 0d7a38c4ce
2 changed files with 4 additions and 5 deletions

5
gmid.c
View File

@ -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;
}

4
gmid.h
View File

@ -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 */