Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
6
66
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Eric Vidal
66
Commits
946aab49
Commit
946aab49
authored
1 year ago
by
Eric Vidal
Browse files
Options
Downloads
Patches
Plain Diff
fix servicedir and status path definition
parent
b2cadc6c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/lib66/parse/parse_compute_resolve.c
+4
-4
4 additions, 4 deletions
src/lib66/parse/parse_compute_resolve.c
with
4 additions
and
4 deletions
src/lib66/parse/parse_compute_resolve.c
+
4
−
4
View file @
946aab49
...
...
@@ -43,9 +43,9 @@ static uint32_t compute_servicedir(resolve_wrapper_t_ref wres, ssexec_t *info)
char
*
name
=
res
->
sa
.
s
+
res
->
name
;
size_t
namelen
=
strlen
(
name
)
;
char
dir
[
info
->
base
.
len
+
SS_SYSTEM_LEN
+
SS_
SERVIC
E_LEN
+
SS_S
VC
_LEN
+
1
+
namelen
+
1
]
;
char
dir
[
info
->
base
.
len
+
SS_SYSTEM_LEN
+
SS_
RESOLV
E_LEN
+
SS_S
ERVICE
_LEN
+
1
+
namelen
+
1
]
;
auto_strings
(
dir
,
info
->
base
.
s
,
SS_SYSTEM
,
SS_
SERVIC
E
,
SS_S
VC
,
"/"
,
name
)
;
auto_strings
(
dir
,
info
->
base
.
s
,
SS_SYSTEM
,
SS_
RESOLV
E
,
SS_S
ERVICE
,
"/"
,
name
)
;
return
resolve_add_string
(
wres
,
dir
)
;
}
...
...
@@ -56,9 +56,9 @@ static uint32_t compute_status(resolve_wrapper_t_ref wres, ssexec_t *info)
char
*
name
=
res
->
sa
.
s
+
res
->
name
;
size_t
namelen
=
strlen
(
name
)
;
char
dir
[
info
->
base
.
len
+
SS_SYSTEM_LEN
+
SS_
SERVIC
E_LEN
+
SS_S
VC
_LEN
+
1
+
namelen
+
SS_STATE_LEN
+
1
+
SS_STATUS_LEN
+
1
]
;
char
dir
[
info
->
base
.
len
+
SS_SYSTEM_LEN
+
SS_
RESOLV
E_LEN
+
SS_S
ERVICE
_LEN
+
1
+
namelen
+
SS_STATE_LEN
+
1
+
SS_STATUS_LEN
+
1
]
;
auto_strings
(
dir
,
info
->
base
.
s
,
SS_SYSTEM
,
SS_
SERVIC
E
,
SS_S
VC
,
"/"
,
name
,
SS_STATE
,
"/"
,
SS_STATUS
)
;
auto_strings
(
dir
,
info
->
base
.
s
,
SS_SYSTEM
,
SS_
RESOLV
E
,
SS_S
ERVICE
,
"/"
,
name
,
SS_STATE
,
"/"
,
SS_STATUS
)
;
return
resolve_add_string
(
wres
,
dir
)
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment