Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
ef5186d9
Commit
ef5186d9
authored
Nov 22, 2019
by
antirez
Browse files
config.c: remove trailing spaces, trim comments to 80 cols.
parent
a5e4c95c
Changes
1
Show whitespace changes
Inline
Side-by-side
src/config.c
View file @
ef5186d9
...
...
@@ -113,11 +113,10 @@ typedef struct boolConfigData {
}
boolConfigData
;
typedef
struct
stringConfigData
{
char
**
config
;
/*
The p
ointer to the server config this value is stored in */
const
char
*
default_value
;
/*
The d
efault value of the config on rewrite */
int
convert_empty_to_null
;
/*
A b
oolean indicating if empty strings should
char
**
config
;
/*
P
ointer to the server config this value is stored in
.
*/
const
char
*
default_value
;
/*
D
efault value of the config on rewrite
.
*/
int
convert_empty_to_null
;
/*
B
oolean indicating if empty strings should
be stored as a NULL value. */
}
stringConfigData
;
typedef
struct
enumConfigData
{
...
...
@@ -1874,8 +1873,7 @@ static char loadbuf[LOADBUF_SIZE];
.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
* 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 Macro defining how to create this type.
*/
/* Bool Configs */
static
int
boolConfigLoad
(
typeData
data
,
sds
*
argv
,
int
argc
,
char
**
err
)
{
if
(
argc
!=
2
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment