Skip to content
Snippets Groups Projects
Commit ca77555c authored by Eric Vidal's avatar Eric Vidal :speech_balloon:
Browse files

typo fix

parent d179c02f
No related branches found
No related tags found
No related merge requests found
...@@ -17,8 +17,8 @@ ...@@ -17,8 +17,8 @@
#include <langinfo.h> #include <langinfo.h>
#include <sys/types.h> #include <sys/types.h>
#include <wchar.h> #include <wchar.h>
#include <unistd.h>//access #include <unistd.h>
#include <stdio.h>//access //#include <stdio.h>
#include <oblibs/sastr.h> #include <oblibs/sastr.h>
#include <oblibs/error2.h> #include <oblibs/error2.h>
...@@ -111,9 +111,9 @@ static inline void info_help (void) ...@@ -111,9 +111,9 @@ static inline void info_help (void)
" -v: increase/decrease verbosity\n" " -v: increase/decrease verbosity\n"
" -c: use color\n" " -c: use color\n"
" -o: comma separated list of field to display\n" " -o: comma separated list of field to display\n"
" -g: displays the contains field as graph\n" " -g: displays the contents field as graph\n"
" -d: limit the depth of the contains field recursion\n" " -d: limit the depth of the contents field recursion\n"
" -r: reserve the contains field\n" " -r: reserve the contents field\n"
" -t: only search service at the specified tree\n" " -t: only search service at the specified tree\n"
" -p: print n last lines of the log file\n" " -p: print n last lines of the log file\n"
"\n" "\n"
...@@ -130,10 +130,10 @@ static inline void info_help (void) ...@@ -130,10 +130,10 @@ static inline void info_help (void)
" start: displays the service's start script\n" " start: displays the service's start script\n"
" stop: displays the service's stop script\n" " stop: displays the service's stop script\n"
" envat: displays the source of the environment file\n" " envat: displays the source of the environment file\n"
" envfile: displays the contains of the environment file\n" " envfile: displays the contents of the environment file\n"
" logname: displays the logger's name\n" " logname: displays the logger's name\n"
" logdst: displays the logger's destination\n" " logdst: displays the logger's destination\n"
" logfile: displays the contains of the log file\n" " logfile: displays the contents of the log file\n"
"\n" "\n"
; ;
......
...@@ -56,7 +56,7 @@ static void info_display_name(char const *field,char const *treename) ; ...@@ -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_init(char const *field,char const *treename) ;
static void info_display_enabled(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_current(char const *field,char const *treename) ;
static void info_display_contains(char const *field,char const *treename) ; static void info_display_contents(char const *field,char const *treename) ;
ss_resolve_graph_style *STYLE = &graph_default ; ss_resolve_graph_style *STYLE = &graph_default ;
info_opts_map_t const opts_tree_table[] = info_opts_map_t const opts_tree_table[] =
...@@ -65,7 +65,7 @@ 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 = "init", .func = &info_display_init, .id = 1 },
{ .str = "enabled", .func = &info_display_enabled, .id = 2 }, { .str = "enabled", .func = &info_display_enabled, .id = 2 },
{ .str = "current", .func = &info_display_current, .id = 3 }, { .str = "current", .func = &info_display_current, .id = 3 },
{ .str = "contains", .func = &info_display_contains, .id = 4 }, { .str = "contents", .func = &info_display_contents, .id = 4 },
{ .str = 0, .func = 0, .id = -1 } { .str = 0, .func = 0, .id = -1 }
} ; } ;
...@@ -86,9 +86,9 @@ static inline void info_help (void) ...@@ -86,9 +86,9 @@ static inline void info_help (void)
" -l: live directory\n" " -l: live directory\n"
" -c: use color\n" " -c: use color\n"
" -o: comma separated list of field to display\n" " -o: comma separated list of field to display\n"
" -g: displays the contains field as graph\n" " -g: displays the contents field as graph\n"
" -d: limit the depth of the contains field recursion\n" " -d: limit the depth of the contents field recursion\n"
" -r: reserve the contains field\n" " -r: reserve the contents field\n"
"\n" "\n"
"valid field for -o options are:\n" "valid field for -o options are:\n"
"\n" "\n"
...@@ -96,7 +96,7 @@ static inline void info_help (void) ...@@ -96,7 +96,7 @@ static inline void info_help (void)
" init: displays a boolean value of the initialization state\n" " init: displays a boolean value of the initialization state\n"
" enabled: displays a boolean value of the enable state\n" " enabled: displays a boolean value of the enable state\n"
" current: displays a boolean value of the current state\n" " current: displays a boolean value of the current state\n"
" contains: displays the contain of the tree\n" " contents: displays the contents of the tree\n"
"\n" "\n"
; ;
...@@ -231,7 +231,7 @@ static void info_get_graph_src(ss_resolve_graph_t *graph,char const *src,unsigne ...@@ -231,7 +231,7 @@ static void info_get_graph_src(ss_resolve_graph_t *graph,char const *src,unsigne
ss_resolve_free(&res) ; ss_resolve_free(&res) ;
} }
static void info_display_contains(char const *field, char const *treename) static void info_display_contents(char const *field, char const *treename)
{ {
int r ; int r ;
size_t padding = 1 ; size_t padding = 1 ;
...@@ -365,7 +365,7 @@ int main(int argc, char const *const *argv, char const *const *envp) ...@@ -365,7 +365,7 @@ int main(int argc, char const *const *argv, char const *const *envp)
"Initialized", "Initialized",
"Enabled", "Enabled",
"Current", "Current",
"Contains" } ; "Contents" } ;
stralloc satree = STRALLOC_ZERO ; stralloc satree = STRALLOC_ZERO ;
......
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