MCPcopy Index your code
hub / github.com/RsyncProject/rsync / lp_number

Function lp_number

loadparm.c:582–592  ·  view source on GitHub ↗

Return the number of the module with the given name, or -1 if it doesn't * exist. Note that this is a DIFFERENT ANIMAL from the internal function * getsectionbyname()! This works ONLY if all sections have been loaded, * and does not copy the found section. */

Source from the content-addressed store, hash-verified

580 * getsectionbyname()! This works ONLY if all sections have been loaded,
581 * and does not copy the found section. */
582int lp_number(char *name)
583{
584 int i;
585
586 for (i = section_list.count - 1; i >= 0; i--) {
587 if (strcmp(lp_name(i), name) == 0)
588 break;
589 }
590
591 return i;
592}

Callers 1

start_daemonFunction · 0.85

Calls 1

lp_nameFunction · 0.85

Tested by

no test coverage detected