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
b1f8c005
Commit
b1f8c005
authored
2 years ago
by
Eric Vidal
Browse files
Options
Downloads
Patches
Plain Diff
return boolean value instead of flag
parent
c55008d6
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/service/service_is_g.c
+10
-11
10 additions, 11 deletions
src/lib66/service/service_is_g.c
with
10 additions
and
11 deletions
src/lib66/service/service_is_g.c
+
10
−
11
View file @
b1f8c005
...
...
@@ -35,25 +35,25 @@ int service_is(ss_state_t *ste, uint32_t flag)
switch
(
flag
)
{
case
STATE_FLAGS_TOINIT
:
return
FLAGS_ISSET
(
ste
->
toinit
,
STATE_FLAGS_TRUE
)
;
case
STATE_FLAGS_TOINIT
:
return
FLAGS_ISSET
(
ste
->
toinit
,
STATE_FLAGS_TRUE
)
?
1
:
0
;
case
STATE_FLAGS_TORELOAD
:
return
FLAGS_ISSET
(
ste
->
toreload
,
STATE_FLAGS_TRUE
)
;
case
STATE_FLAGS_TORELOAD
:
return
FLAGS_ISSET
(
ste
->
toreload
,
STATE_FLAGS_TRUE
)
?
1
:
0
;
case
STATE_FLAGS_TORESTART
:
return
FLAGS_ISSET
(
ste
->
torestart
,
STATE_FLAGS_TRUE
)
;
case
STATE_FLAGS_TORESTART
:
return
FLAGS_ISSET
(
ste
->
torestart
,
STATE_FLAGS_TRUE
)
?
1
:
0
;
case
STATE_FLAGS_TOUNSUPERVISE
:
return
FLAGS_ISSET
(
ste
->
tounsupervise
,
STATE_FLAGS_TRUE
)
;
case
STATE_FLAGS_TOUNSUPERVISE
:
return
FLAGS_ISSET
(
ste
->
tounsupervise
,
STATE_FLAGS_TRUE
)
?
1
:
0
;
case
STATE_FLAGS_ISDOWNFILE
:
return
FLAGS_ISSET
(
ste
->
isdownfile
,
STATE_FLAGS_TRUE
)
;
case
STATE_FLAGS_ISDOWNFILE
:
return
FLAGS_ISSET
(
ste
->
isdownfile
,
STATE_FLAGS_TRUE
)
?
1
:
0
;
case
STATE_FLAGS_ISEARLIER
:
return
FLAGS_ISSET
(
ste
->
isearlier
,
STATE_FLAGS_TRUE
)
;
case
STATE_FLAGS_ISEARLIER
:
return
FLAGS_ISSET
(
ste
->
isearlier
,
STATE_FLAGS_TRUE
)
?
1
:
0
;
case
STATE_FLAGS_ISENABLED
:
return
FLAGS_ISSET
(
ste
->
isenabled
,
STATE_FLAGS_TRUE
)
;
case
STATE_FLAGS_ISENABLED
:
return
FLAGS_ISSET
(
ste
->
isenabled
,
STATE_FLAGS_TRUE
)
?
1
:
0
;
case
STATE_FLAGS_ISPARSED
:
return
FLAGS_ISSET
(
ste
->
isparsed
,
STATE_FLAGS_TRUE
)
;
//always true framboise
case
STATE_FLAGS_ISPARSED
:
return
FLAGS_ISSET
(
ste
->
isparsed
,
STATE_FLAGS_TRUE
)
?
1
:
0
;
//always true framboise
case
STATE_FLAGS_ISSUPERVISED
:
return
FLAGS_ISSET
(
ste
->
issupervised
,
STATE_FLAGS_TRUE
)
;
case
STATE_FLAGS_ISSUPERVISED
:
return
FLAGS_ISSET
(
ste
->
issupervised
,
STATE_FLAGS_TRUE
)
?
1
:
0
;
case
STATE_FLAGS_ISUP
:
return
FLAGS_ISSET
(
ste
->
isup
,
STATE_FLAGS_TRUE
)
;
case
STATE_FLAGS_ISUP
:
return
FLAGS_ISSET
(
ste
->
isup
,
STATE_FLAGS_TRUE
)
?
1
:
0
;
default:
break
;
...
...
@@ -86,7 +86,6 @@ int service_is_g(char *atree, char const *name, uint32_t flag)
}
size_t
baselen
=
strlen
(
base
)
;
//char tmp[baselen + SS_SYSTEM_LEN + 1] ;
auto_strings
(
base
+
baselen
,
SS_SYSTEM
)
;
// no tree exist yet
...
...
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