mirror of
https://github.com/fluencelabs/redis
synced 2025-05-11 18:27:12 +00:00
config.c: remove trailing spaces, trim comments to 80 cols.
This commit is contained in:
parent
a5e4c95cfd
commit
ef5186d920
11
src/config.c
11
src/config.c
@ -113,11 +113,10 @@ typedef struct boolConfigData {
|
|||||||
} boolConfigData;
|
} boolConfigData;
|
||||||
|
|
||||||
typedef struct stringConfigData {
|
typedef struct stringConfigData {
|
||||||
char **config; /* The pointer to the server config this value is stored in */
|
char **config; /* Pointer to the server config this value is stored in. */
|
||||||
const char *default_value; /* The default value of the config on rewrite */
|
const char *default_value; /* Default value of the config on rewrite. */
|
||||||
int convert_empty_to_null; /* A boolean indicating if empty strings should
|
int convert_empty_to_null; /* Boolean indicating if empty strings should
|
||||||
be stored as a NULL value. */
|
be stored as a NULL value. */
|
||||||
|
|
||||||
} stringConfigData;
|
} stringConfigData;
|
||||||
|
|
||||||
typedef struct enumConfigData {
|
typedef struct enumConfigData {
|
||||||
@ -1874,8 +1873,7 @@ static char loadbuf[LOADBUF_SIZE];
|
|||||||
.rewrite = (rewritefn) \
|
.rewrite = (rewritefn) \
|
||||||
},
|
},
|
||||||
|
|
||||||
/*
|
/* What follows is the generic config types that are supported. To add a new
|
||||||
* What follows is the generic config types that are supported. To add a new
|
|
||||||
* config with one of these types, add it to the standardConfig table with
|
* config with one of these types, add it to the standardConfig table with
|
||||||
* the creation macro for each type.
|
* the creation macro for each type.
|
||||||
*
|
*
|
||||||
@ -1886,6 +1884,7 @@ static char loadbuf[LOADBUF_SIZE];
|
|||||||
* * A function defining how to rewrite this type on CONFIG REWRITE.
|
* * A function defining how to rewrite this type on CONFIG REWRITE.
|
||||||
* * A Macro defining how to create this type.
|
* * A Macro defining how to create this type.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Bool Configs */
|
/* Bool Configs */
|
||||||
static int boolConfigLoad(typeData data, sds *argv, int argc, char **err) {
|
static int boolConfigLoad(typeData data, sds *argv, int argc, char **err) {
|
||||||
if (argc != 2) {
|
if (argc != 2) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user