MCPcopy Create free account
hub / github.com/git/git / make_service_overridable

Function make_service_overridable

daemon.c:516–525  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

514}
515
516static void make_service_overridable(const char *name, int ena)
517{
518 for (size_t i = 0; i < ARRAY_SIZE(daemon_service); i++) {
519 if (!strcmp(daemon_service[i].name, name)) {
520 daemon_service[i].overridable = ena;
521 return;
522 }
523 }
524 die("No such service %s", name);
525}
526
527static void parse_host_and_port(char *hostport, char **host,
528 char **port)

Callers 1

cmd_mainFunction · 0.85

Calls 1

dieFunction · 0.70

Tested by

no test coverage detected