mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-22 22:56:29 +00:00
Canonicalize whitespace
Signed-off-by: Dan Farina <drfarina@acm.org> Signed-off-by: Peter van Hardenberg <pvh@heroku.com>
This commit is contained in:
committed by
Peter van Hardenberg
parent
309bb92d95
commit
fc13d50e37
4
config.c
4
config.c
@@ -36,11 +36,11 @@ parse_config(const char *config_file, char *cluster_name, int *node,
|
||||
|
||||
/* Copy into correct entry in parameters struct */
|
||||
if (strcmp(name, "cluster") == 0)
|
||||
strncpy (cluster_name, value, MAXLEN);
|
||||
strncpy(cluster_name, value, MAXLEN);
|
||||
else if (strcmp(name, "node") == 0)
|
||||
*node = atoi(value);
|
||||
else if (strcmp(name, "conninfo") == 0)
|
||||
strncpy (conninfo, value, MAXLEN);
|
||||
strncpy(conninfo, value, MAXLEN);
|
||||
else
|
||||
printf("WARNING: %s/%s: Unknown name/value pair!\n",
|
||||
name, value);
|
||||
|
||||
Reference in New Issue
Block a user