* Removed ifdef __GNUC__ around printf-like prototypes since both clang and gcc have format/printf macros defined
This commit is contained in:
parent
519fe1f576
commit
b164f02277
11 changed files with 1 additions and 56 deletions
|
|
@ -41,11 +41,7 @@
|
|||
/*
|
||||
* Prototypes
|
||||
*/
|
||||
#if defined(__GNUC__) && __GNUC__ >= 3
|
||||
int restconf_reply_header(void *req, const char *name, const char *vfmt, ...) __attribute__ ((format (printf, 3, 4)));
|
||||
#else
|
||||
int restconf_reply_header(void *req, const char *name, const char *vfmt, ...);
|
||||
#endif
|
||||
|
||||
/* note cb is consumed dont free */
|
||||
int restconf_reply_send(void *req, int code, cbuf *cb, int head);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue