Skip to content
Snippets Groups Projects
Commit fad69b39 authored by Eric Vidal's avatar Eric Vidal 💬
Browse files

use macro instead of hardcoding

parent 810237df
No related branches found
No related tags found
No related merge requests found
......@@ -389,10 +389,10 @@ static void compute_log(resolve_service_t *res, resolve_service_t *ares, unsigne
lres.live.livedir = resolve_add_string(wres, info->live.s) ;
lres.live.scandir = compute_scan_dir(wres, info) ;
lres.live.statedir = compute_state_dir(wres, info, "state") ;
lres.live.eventdir = compute_state_dir(wres, info, "event") ;
lres.live.statedir = compute_state_dir(wres, info, SS_STATE + 1) ;
lres.live.eventdir = compute_state_dir(wres, info, SS_EVENTDIR + 1) ;
lres.live.notifdir = compute_state_dir(wres, info, "notif") ;
lres.live.supervisedir = compute_state_dir(wres, info, "supervise") ;
lres.live.supervisedir = compute_state_dir(wres, info, SS_SUPERVISEDIR + 1) ;
lres.live.fdholderdir = compute_pipe_service(wres, info, name, SS_FDHOLDER) ;
lres.live.oneshotddir = compute_pipe_service(wres, info, name, SS_ONESHOTD) ;
......
......@@ -215,7 +215,7 @@ int parse_store_main(resolve_service_t *res, char *store, int idsec, int idkey)
for (; pos < len ; pos += strlen(t + pos) + 1) {
if (!auto_stra(&sa, t + pos, " "))
goto err ;
goto err ;
}
sa.len-- ;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment