Project

General

Profile

Cleanup #320 » 0001-rgw-Remove-double-declaration-of-CGI_PRINTF.patch

Wido den Hollander, 07/29/2010 04:51 AM

View differences:

src/rgw/rgw_common.h
#define RGW_LOG_BEGIN "RADOS S3 Gateway:"
#define RGW_LOG(x) if ((x) <= rgw_log_level) cout << RGW_LOG_BEGIN << " "
#define CGI_PRINTF(stream, format, ...) do { \
FCGX_FPrintF(stream, format, __VA_ARGS__); \
} while (0)
typedef void *RGWAccessHandle;
/** Store error returns for output at a different point in the program */
src/rgw/rgw_main.cc
using namespace std;
#define CGI_PRINTF(stream, format, ...) do { \
FCGX_FPrintF(stream, format, __VA_ARGS__); \
} while (0)
/*
* ?get the canonical amazon-style header for something?
*/
src/rgw/rgw_rest.cc
#include "rgw_op.h"
#include "rgw_rest.h"
#define CGI_PRINTF(stream, format, ...) do { \
FCGX_FPrintF(stream, format, __VA_ARGS__); \
} while (0)
static void dump_status(struct req_state *s, const char *status)
{
CGI_PRINTF(s->fcgx->out,"Status: %s\n", status);
(1-1/3)