X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=h%2Fprototypes.h;h=d559baa15dd5142df9f92a1bd492c3f836905811;hb=8d3e26681c4341c76fe9a28371a75061678e7df2;hp=a91418e2c9d5cc4be33129007452b83e11ba3834;hpb=13f84dd50ca5754391dbd3296a5c7425f9363600;p=mmh diff --git a/h/prototypes.h b/h/prototypes.h index a91418e..d559baa 100644 --- a/h/prototypes.h +++ b/h/prototypes.h @@ -5,6 +5,15 @@ * $Id$ */ +/* If we're using gcc then give it some information about + * functions that abort. + */ +#if __GNUC__ > 2 +#define NORETURN __attribute__((__noreturn__) +#else +#define NORETURN +#endif + /* * missing system prototypes */ @@ -25,7 +34,7 @@ char *etcpath(char *); /* * prototypes from the nmh subroutine library */ -void adios (char *, char *, ...); +void adios (char *, char *, ...) NORETURN; void admonish (char *, char *, ...); void advertise (char *, char *, char *, va_list); void advise (char *, char *, ...); @@ -47,7 +56,7 @@ void cpydata (int, int, char *, char *); void cpydgst (int, int, char *, char *); int decode_rfc2047 (char *, char *, size_t); void discard (FILE *); -int done (int); +int default_done (int); int ext_hook(char *, char *, char *); int fdcompare (int, int); int folder_addmsg (struct msgs **, char *, int, int, int, int, char *); @@ -71,7 +80,7 @@ int m_atoi (char *); char *m_backup (char *); int m_convert (struct msgs *, char *); char *m_draft (char *, char *, int, int *); -void m_eomsbr (int (*)()); +void m_eomsbr (int (*)(int)); int m_getfld (int, unsigned char *, unsigned char *, int, FILE *); int m_gmprot (void); char *m_maildir (char *); @@ -98,7 +107,7 @@ char *pwd (void); char *r1bindex(char *, int); void readconfig (struct node **, FILE *, char *, int); int refile (char **, char *); -int ruserpass(char *, char **, char **); +void ruserpass(char *, char **, char **); int remdir (char *); int seq_addmsg (struct msgs *, char *, int, int, int); int seq_addsel (struct msgs *, char *, int, int);