unified curl test options

This commit is contained in:
Olof hagsand 2020-07-03 14:13:15 +02:00
parent 593ed2ef3b
commit 5dc2a6387d
34 changed files with 434 additions and 427 deletions

View file

@ -42,9 +42,9 @@
* Prototypes
*/
#if defined(__GNUC__) && __GNUC__ >= 3
int restconf_reply_header(void *req, char *name, const char *vfmt, ...) __attribute__ ((format (printf, 3, 4)));
int restconf_reply_header(void *req, const char *name, const char *vfmt, ...) __attribute__ ((format (printf, 3, 4)));
#else
int restconf_reply_header(FCGX_Request *req, char *name, const char *vfmt, ...);
int restconf_reply_header(FCGX_Request *req, const char *name, const char *vfmt, ...);
#endif
int restconf_reply_send(void *req, int code, cbuf *cb);

View file

@ -72,9 +72,9 @@
* @see eg RFC 7230
*/
int
restconf_reply_header(void *req0,
char *name,
char *vfmt,
restconf_reply_header(void *req0,
const char *name,
const char *vfmt,
...)
{

View file

@ -88,9 +88,9 @@ restconf_reply_body_start(void *req0)
* @see eg RFC 7230
*/
int
restconf_reply_header(void *req0,
char *name,
const char *vfmt,
restconf_reply_header(void *req0,
const char *name,
const char *vfmt,
...)
{
FCGX_Request *req = (FCGX_Request *)req0;