mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-04 08:15:07 -05:00
cmdparse: remove CPS_Status
Remove command and option specific error codes. Return zero on any failure.
This commit is contained in:
8
conf.c
8
conf.c
@@ -604,17 +604,13 @@ parse_null(char *line)
|
||||
static void
|
||||
parse_source(char *line, NTP_Source_Type type, int pool)
|
||||
{
|
||||
CPS_Status status;
|
||||
NTP_Source source;
|
||||
char str[64];
|
||||
|
||||
source.type = type;
|
||||
source.pool = pool;
|
||||
status = CPS_ParseNTPSourceAdd(line, &source.params);
|
||||
|
||||
if (status != CPS_Success) {
|
||||
CPS_StatusToString(status, str, sizeof (str));
|
||||
other_parse_error(str);
|
||||
if (!CPS_ParseNTPSourceAdd(line, &source.params)) {
|
||||
command_parse_error();
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user