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
ca77555c
Commit
ca77555c
authored
5 years ago
by
Eric Vidal
Browse files
Options
Downloads
Patches
Plain Diff
typo fix
parent
d179c02f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/66/66-inservice.c
+7
-7
7 additions, 7 deletions
src/66/66-inservice.c
src/66/66-intree.c
+8
-8
8 additions, 8 deletions
src/66/66-intree.c
with
15 additions
and
15 deletions
src/66/66-inservice.c
+
7
−
7
View file @
ca77555c
...
...
@@ -17,8 +17,8 @@
#include
<langinfo.h>
#include
<sys/types.h>
#include
<wchar.h>
#include
<unistd.h>
//access
#include
<stdio.h>
//access
#include
<unistd.h>
//
#include <stdio.h>
#include
<oblibs/sastr.h>
#include
<oblibs/error2.h>
...
...
@@ -111,9 +111,9 @@ static inline void info_help (void)
" -v: increase/decrease verbosity
\n
"
" -c: use color
\n
"
" -o: comma separated list of field to display
\n
"
" -g: displays the cont
ain
s field as graph
\n
"
" -d: limit the depth of the cont
ain
s field recursion
\n
"
" -r: reserve the cont
ain
s field
\n
"
" -g: displays the cont
ent
s field as graph
\n
"
" -d: limit the depth of the cont
ent
s field recursion
\n
"
" -r: reserve the cont
ent
s field
\n
"
" -t: only search service at the specified tree
\n
"
" -p: print n last lines of the log file
\n
"
"
\n
"
...
...
@@ -130,10 +130,10 @@ static inline void info_help (void)
" start: displays the service's start script
\n
"
" stop: displays the service's stop script
\n
"
" envat: displays the source of the environment file
\n
"
" envfile: displays the cont
ain
s of the environment file
\n
"
" envfile: displays the cont
ent
s of the environment file
\n
"
" logname: displays the logger's name
\n
"
" logdst: displays the logger's destination
\n
"
" logfile: displays the cont
ain
s of the log file
\n
"
" logfile: displays the cont
ent
s of the log file
\n
"
"
\n
"
;
...
...
This diff is collapsed.
Click to expand it.
src/66/66-intree.c
+
8
−
8
View file @
ca77555c
...
...
@@ -56,7 +56,7 @@ static void info_display_name(char const *field,char const *treename) ;
static
void
info_display_init
(
char
const
*
field
,
char
const
*
treename
)
;
static
void
info_display_enabled
(
char
const
*
field
,
char
const
*
treename
)
;
static
void
info_display_current
(
char
const
*
field
,
char
const
*
treename
)
;
static
void
info_display_cont
ain
s
(
char
const
*
field
,
char
const
*
treename
)
;
static
void
info_display_cont
ent
s
(
char
const
*
field
,
char
const
*
treename
)
;
ss_resolve_graph_style
*
STYLE
=
&
graph_default
;
info_opts_map_t
const
opts_tree_table
[]
=
...
...
@@ -65,7 +65,7 @@ info_opts_map_t const opts_tree_table[] =
{
.
str
=
"init"
,
.
func
=
&
info_display_init
,
.
id
=
1
},
{
.
str
=
"enabled"
,
.
func
=
&
info_display_enabled
,
.
id
=
2
},
{
.
str
=
"current"
,
.
func
=
&
info_display_current
,
.
id
=
3
},
{
.
str
=
"cont
ain
s"
,
.
func
=
&
info_display_cont
ain
s
,
.
id
=
4
},
{
.
str
=
"cont
ent
s"
,
.
func
=
&
info_display_cont
ent
s
,
.
id
=
4
},
{
.
str
=
0
,
.
func
=
0
,
.
id
=
-
1
}
}
;
...
...
@@ -86,9 +86,9 @@ static inline void info_help (void)
" -l: live directory
\n
"
" -c: use color
\n
"
" -o: comma separated list of field to display
\n
"
" -g: displays the cont
ain
s field as graph
\n
"
" -d: limit the depth of the cont
ain
s field recursion
\n
"
" -r: reserve the cont
ain
s field
\n
"
" -g: displays the cont
ent
s field as graph
\n
"
" -d: limit the depth of the cont
ent
s field recursion
\n
"
" -r: reserve the cont
ent
s field
\n
"
"
\n
"
"valid field for -o options are:
\n
"
"
\n
"
...
...
@@ -96,7 +96,7 @@ static inline void info_help (void)
" init: displays a boolean value of the initialization state
\n
"
" enabled: displays a boolean value of the enable state
\n
"
" current: displays a boolean value of the current state
\n
"
" cont
ain
s: displays the cont
ain
of the tree
\n
"
" cont
ent
s: displays the cont
ents
of the tree
\n
"
"
\n
"
;
...
...
@@ -231,7 +231,7 @@ static void info_get_graph_src(ss_resolve_graph_t *graph,char const *src,unsigne
ss_resolve_free
(
&
res
)
;
}
static
void
info_display_cont
ain
s
(
char
const
*
field
,
char
const
*
treename
)
static
void
info_display_cont
ent
s
(
char
const
*
field
,
char
const
*
treename
)
{
int
r
;
size_t
padding
=
1
;
...
...
@@ -365,7 +365,7 @@ int main(int argc, char const *const *argv, char const *const *envp)
"Initialized"
,
"Enabled"
,
"Current"
,
"Cont
ain
s"
}
;
"Cont
ent
s"
}
;
stralloc
satree
=
STRALLOC_ZERO
;
...
...
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