MCPcopy Create free account
hub / github.com/RsyncProject/rsync / set_dparams

Function set_dparams

loadparm.c:548–570  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

546}
547
548BOOL set_dparams(int syntax_check_only)
549{
550 char *equal, *val, **params = dparam_list.items;
551 unsigned j;
552
553 for (j = 0; j < dparam_list.count; j++) {
554 equal = strchr(params[j], '='); /* options.c verified this */
555 *equal = '\0';
556 if (syntax_check_only) {
557 if (map_parameter(params[j]) < 0) {
558 rprintf(FERROR, "Unknown parameter \"%s\"\n", params[j]);
559 *equal = '=';
560 return False;
561 }
562 } else {
563 for (val = equal+1; isSpace(val); val++) {}
564 do_parameter(params[j], val);
565 }
566 *equal = '=';
567 }
568
569 return True;
570}
571
572/* Return the max number of modules (sections). */
573int lp_num_modules(void)

Callers 3

parse_argumentsFunction · 0.85
do_sectionFunction · 0.85
daemon_mainFunction · 0.85

Calls 4

map_parameterFunction · 0.85
isSpaceFunction · 0.85
do_parameterFunction · 0.85
rprintfFunction · 0.70

Tested by

no test coverage detected