diff --git a/doc/scripts/cdefs2doc/dump_cfg_defs.pl b/doc/scripts/cdefs2doc/dump_cfg_defs.pl index ebf14afb62a..7182ec2c3c8 100755 --- a/doc/scripts/cdefs2doc/dump_cfg_defs.pl +++ b/doc/scripts/cdefs2doc/dump_cfg_defs.pl @@ -27,7 +27,7 @@ # - the first array of type cfg_def_t with an initializer is the array # with the config definitions (name, type, description a.s.o.). Only # one cfg_def array per file is supported. -# - the first variable of type struct cfg_group_(.*) , with an intializer, +# - the first variable of type struct cfg_group_(.*) , with an initializer, # contains the default values. If no group name is specified on the # command line (--group) the group name is derived from the struct # name ($1). The default values are optional. Only one such variable is @@ -119,7 +119,7 @@ sub help -g | --grp name --group name - config group name used if one cannot be autodetected (e.g. no default value - intializer present in the file). + initializer present in the file). -G | --force-grp name --force-group name - force using a config group name, even if one is autodetected (see also -g). @@ -270,7 +270,7 @@ sub expr_op0{ # @7705 (var name) identifier_node strg: tcp_cfg_def lngt 11 # @7706 (var type) array_type: size:@7709 algn: 32 elts: @2265 domn: @7718 # @7707 (? next ? ) function_decl: .... -# @7708 (intializer) constructor: lngt: 25 +# @7708 (initializer) constructor: lngt: 25 # idx : @20 val : @7723 [...] # @7709 interget_cst: type: @11 low: 5600 # diff --git a/doc/scripts/cdefs2doc/dump_counters.pl b/doc/scripts/cdefs2doc/dump_counters.pl index c03d10d091b..cd392ddea6f 100755 --- a/doc/scripts/cdefs2doc/dump_counters.pl +++ b/doc/scripts/cdefs2doc/dump_counters.pl @@ -258,7 +258,7 @@ sub expr_op0{ # @7705 (var name) identifier_node strg: tcp_cfg_def lngt 11 # @7706 (var type) array_type: size:@7709 algn: 32 elts: @2265 domn: @7718 # @7707 (? next ? ) function_decl: .... -# @7708 (intializer) constructor: lngt: 25 +# @7708 (initializer) constructor: lngt: 25 # idx : @20 val : @7723 [...] # @7709 interget_cst: type: @11 low: 5600 # diff --git a/doc/scripts/cdefs2doc/dump_rpcs.pl b/doc/scripts/cdefs2doc/dump_rpcs.pl index 63c222eb11b..5cadc64adc3 100755 --- a/doc/scripts/cdefs2doc/dump_rpcs.pl +++ b/doc/scripts/cdefs2doc/dump_rpcs.pl @@ -28,7 +28,7 @@ # with the rpc definitions (name, doc, flags a.s.o.). Only # one rpc_export_t array per file is supported. # - all the documentation arrays referenced in the rpc export array are -# defined and intialized in the same file. +# defined and initialized in the same file. # # Output notes: # - doc strings are not printed if they cannot be found @@ -112,7 +112,7 @@ sub help -g | --grp name --group name - rpc group name used if one cannot be autodetected (e.g. no default value - intializer present in the file). + initializer present in the file). -G | --force-grp name --force-group name - force using a rpc group name, even if one is autodetected (see also -g). @@ -263,7 +263,7 @@ sub expr_op0{ # @7705 (var name) identifier_node strg: tcp_cfg_def lngt 11 # @7706 (var type) array_type: size:@7709 algn: 32 elts: @2265 domn: @7718 # @7707 (? next ? ) function_decl: .... -# @7708 (intializer) constructor: lngt: 25 +# @7708 (initializer) constructor: lngt: 25 # idx : @20 val : @7723 [...] # @7709 interget_cst: type: @11 low: 5600 # diff --git a/doc/scripts/cdefs2doc/dump_selects.pl b/doc/scripts/cdefs2doc/dump_selects.pl index 76aa5d91826..18fee50a0d0 100755 --- a/doc/scripts/cdefs2doc/dump_selects.pl +++ b/doc/scripts/cdefs2doc/dump_selects.pl @@ -111,7 +111,7 @@ sub help -g | --grp name --group name - select group name used if one cannot be autodetected (e.g. no default value - intializer present in the file). + initializer present in the file). -G | --force-grp name --force-group name - force using a select group name, even if one is autodetected (see also -g). diff --git a/doc/timers.txt b/doc/timers.txt index 69bff18942e..c50c7368324 100644 --- a/doc/timers.txt +++ b/doc/timers.txt @@ -106,8 +106,8 @@ The timer handler can be periodic, one shot or it can change from call to call. ------------- The timer becomes active after you add it with timer_add. timer_add takes as parameters a pointer to the corresponding timer_ln structure and an expire interval (in ticks, use the macros from timer_ticks.h to convert from s/ms). -The timer must be intialized (with timer_init()) before adding it the first time. -timer_add returns 0 on success and -1 on error (timer already active or timer not intialized). +The timer must be initialized (with timer_init()) before adding it the first time. +timer_add returns 0 on success and -1 on error (timer already active or timer not initialized). If you want to re-add a deleted timer (timer_del was called on it) or an expired one shot timer (the timer handlers returned 0 on the last run), you have to re-init it first, either by calling timer_reinit(t) or by calling again timer_init(...). If you don't re-initialize the timer, timer_add will refuse to add it and it will return -1. So if timer_add returns error (-1) it means that either you're trying to re-add a running timer or a deleted/expired timer that was not re-initialized. WARNING: do not initialize/re-initialize a running timer!