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
e4cd0005
Commit
e4cd0005
authored
3 years ago
by
Eric Vidal
Browse files
Options
Downloads
Patches
Plain Diff
rename SERVICE_STRUCT to DATA_SERVICE, use new field name of resolve service file
parent
c6ece931
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/rc_init.c
+5
-5
5 additions, 5 deletions
src/lib66/rc_init.c
with
5 additions
and
5 deletions
src/lib66/rc_init.c
+
5
−
5
View file @
e4cd0005
...
...
@@ -51,7 +51,7 @@ int rc_init(ssexec_t *info, char const *const *envp)
ss_state_t
sta
=
STATE_ZERO
;
stralloc
sares
=
STRALLOC_ZERO
;
resolve_service_t
res
=
RESOLVE_SERVICE_ZERO
;
resolve_wrapper_t_ref
wres
=
resolve_set_struct
(
SERVICE
_STRUCT
,
&
res
)
;
resolve_wrapper_t_ref
wres
=
resolve_set_struct
(
DATA_
SERVICE
,
&
res
)
;
stralloc
sasvc
=
STRALLOC_ZERO
;
genalloc
gares
=
GENALLOC_ZERO
;
//resolve_service_t type
...
...
@@ -81,7 +81,7 @@ int rc_init(ssexec_t *info, char const *const *envp)
if
(
!
resolve_check
(
sares
.
s
,
SS_MASTER
+
1
))
{
log_warnu
(
"find inner bundle -- please make a bug report"
)
;
goto
err
;
}
if
(
!
resolve_read
(
wres
,
sares
.
s
,
SS_MASTER
+
1
))
{
log_warnusys
(
"read resolve file of inner bundle"
)
;
goto
err
;
}
if
(
!
res
.
ndeps
)
if
(
!
res
.
ndep
end
s
)
{
log_info
(
"Initialization: no atomic services into tree: "
,
info
->
treename
.
s
)
;
empty
=
1
;
...
...
@@ -128,13 +128,13 @@ int rc_init(ssexec_t *info, char const *const *envp)
if
(
wstat
)
{
log_warnu
(
"init db of tree: "
,
info
->
treename
.
s
)
;
goto
err
;
}
if
(
!
sastr_clean_string
(
&
sasvc
,
res
.
sa
.
s
+
res
.
deps
))
{
log_warnusys
(
"clean dependencies of inner bundle"
)
;
goto
err
;
}
if
(
!
sastr_clean_string
(
&
sasvc
,
res
.
sa
.
s
+
res
.
dep
end
s
))
{
log_warnusys
(
"clean dependencies of inner bundle"
)
;
goto
err
;
}
for
(;
pos
<
sasvc
.
len
;
pos
+=
strlen
(
sasvc
.
s
+
pos
)
+
1
)
{
char
*
name
=
sasvc
.
s
+
pos
;
resolve_service_t
tmp
=
RESOLVE_SERVICE_ZERO
;
resolve_wrapper_t_ref
wres
=
resolve_set_struct
(
SERVICE
_STRUCT
,
&
tmp
)
;
resolve_wrapper_t_ref
wres
=
resolve_set_struct
(
DATA_
SERVICE
,
&
tmp
)
;
if
(
!
resolve_check
(
sares
.
s
,
name
)){
log_warnsys
(
"unknown service: "
,
name
)
;
goto
err
;
}
if
(
!
resolve_read
(
wres
,
sares
.
s
,
name
))
{
log_warnusys
(
"read resolve file of: "
,
name
)
;
goto
err
;
}
if
(
!
service_resolve_add_deps
(
&
gares
,
&
tmp
,
sares
.
s
))
{
log_warnusys
(
"resolve dependencies of: "
,
name
)
;
goto
err
;
}
...
...
@@ -161,7 +161,7 @@ int rc_init(ssexec_t *info, char const *const *envp)
e
=
empty
?
2
:
1
;
err:
resolve_deep_free
(
SERVICE
_STRUCT
,
&
gares
)
;
resolve_deep_free
(
DATA_
SERVICE
,
&
gares
)
;
stralloc_free
(
&
sasvc
)
;
resolve_free
(
wres
)
;
stralloc_free
(
&
sares
)
;
...
...
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