diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2017-02-17 14:31:52 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2017-02-17 14:31:52 +0000 |
commit | 54d735ad40551c65097fc14a04f450620d23bad0 (patch) | |
tree | e9025d70c3b21dbeb9cf80cea915660edffb3ef2 | |
parent | 43757c82b3a7a65d2481fe9ff6efb2970e685827 (diff) | |
download | mandoc-54d735ad40551c65097fc14a04f450620d23bad0.tar.gz |
Be consistent in protecting __attribute__ attributes with __;
from Christos Zoulas <christos @ NetBSD>.
-rw-r--r-- | catman.c | 4 | ||||
-rw-r--r-- | libmandoc.h | 2 | ||||
-rw-r--r-- | main.c | 2 | ||||
-rw-r--r-- | mandoc_aux.h | 2 | ||||
-rw-r--r-- | mandocd.c | 2 | ||||
-rw-r--r-- | mandocdb.c | 2 | ||||
-rw-r--r-- | tag.c | 2 | ||||
-rw-r--r-- | term_ps.c | 2 |
8 files changed, 9 insertions, 9 deletions
@@ -48,9 +48,9 @@ int process_manpage(int, int, const char *); int process_tree(int, int); void run_mandocd(int, const char *, const char *) - __attribute__((noreturn)); + __attribute__((__noreturn__)); ssize_t sock_fd_write(int, int, int, int); -void usage(void) __attribute__((noreturn)); +void usage(void) __attribute__((__noreturn__)); void diff --git a/libmandoc.h b/libmandoc.h index 2003ec63..1a423b04 100644 --- a/libmandoc.h +++ b/libmandoc.h @@ -43,7 +43,7 @@ void mandoc_msg(enum mandocerr, struct mparse *, int, int, const char *); void mandoc_vmsg(enum mandocerr, struct mparse *, int, int, const char *, ...) - __attribute__((__format__ (printf, 5, 6))); + __attribute__((__format__ (__printf__, 5, 6))); char *mandoc_getarg(struct mparse *, char **, int, int *); char *mandoc_normdate(struct mparse *, char *, int, int); int mandoc_eos(const char *, size_t); @@ -100,7 +100,7 @@ static void parse(struct curparse *, int, const char *); static void passthrough(const char *, int, int); static pid_t spawn_pager(struct tag_files *); static int toptions(struct curparse *, char *); -static void usage(enum argmode) __attribute__((noreturn)); +static void usage(enum argmode) __attribute__((__noreturn__)); static int woptions(struct curparse *, char *); static const int sec_prios[] = {1, 4, 5, 8, 6, 3, 7, 2, 9}; diff --git a/mandoc_aux.h b/mandoc_aux.h index b6a70ae9..3742c412 100644 --- a/mandoc_aux.h +++ b/mandoc_aux.h @@ -17,7 +17,7 @@ */ int mandoc_asprintf(char **, const char *, ...) - __attribute__((__format__ (printf, 2, 3))); + __attribute__((__format__ (__printf__, 2, 3))); void *mandoc_calloc(size_t, size_t); void *mandoc_malloc(size_t); void *mandoc_realloc(void *, size_t); @@ -49,7 +49,7 @@ enum outt { static void process(struct mparse *, enum outt, void *); static int read_fds(int, int *); -static void usage(void) __attribute__((noreturn)); +static void usage(void) __attribute__((__noreturn__)); #define NUM_FDS 3 @@ -162,7 +162,7 @@ static void putmdockey(const struct mpage *, const struct roff_node *, uint64_t, int); static int render_string(char **, size_t *); static void say(const char *, const char *, ...) - __attribute__((__format__ (printf, 2, 3))); + __attribute__((__format__ (__printf__, 2, 3))); static int set_basedir(const char *, int); static int treescan(void); static size_t utf8(unsigned int, char [7]); @@ -38,7 +38,7 @@ struct tag_entry { char s[]; }; -static void tag_signal(int) __attribute__((noreturn)); +static void tag_signal(int) __attribute__((__noreturn__)); static struct ohash tag_data; static struct tag_files tag_files; @@ -104,7 +104,7 @@ static void ps_pclose(struct termp *); static void ps_plast(struct termp *); static void ps_pletter(struct termp *, int); static void ps_printf(struct termp *, const char *, ...) - __attribute__((__format__ (printf, 2, 3))); + __attribute__((__format__ (__printf__, 2, 3))); static void ps_putchar(struct termp *, char); static void ps_setfont(struct termp *, enum termfont); static void ps_setwidth(struct termp *, int, int); |