batctl: Rename option_watch_interval to option_timeout_interval
Commit Message
The watch interval is actually a different option for debug tables which
uses the parameter '-w'. The configuration to enable/disable the parameter
to set the timeout for not displaying not seen originators should therefore
use a different name.
Signed-off-by: Sven Eckelmann <sven@narfation.org>
---
debug.c | 4 ++--
debug.h | 2 +-
originators.c | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
@@ -44,7 +44,7 @@ static void debug_table_usage(struct state *state)
fprintf(stderr, " \t -H don't show the header\n");
fprintf(stderr, " \t -w [interval] watch mode - refresh the table continuously\n");
- if (debug_table->option_watch_interval)
+ if (debug_table->option_timeout_interval)
fprintf(stderr, " \t -t timeout interval - don't print originators not seen for x.y seconds \n");
if (debug_table->option_orig_iface)
@@ -89,7 +89,7 @@ int handle_debug_table(struct state *state, int argc, char **argv)
}
break;
case 't':
- if (!debug_table->option_watch_interval) {
+ if (!debug_table->option_timeout_interval) {
fprintf(stderr, "Error - unrecognised option '-%c'\n", optchar);
debug_table_usage(state);
return EXIT_FAILURE;
@@ -43,7 +43,7 @@ struct debug_table_data {
float orig_timeout, float watch_interval);
unsigned int option_unicast_only:1;
unsigned int option_multicast_only:1;
- unsigned int option_watch_interval:1;
+ unsigned int option_timeout_interval:1;
unsigned int option_orig_iface:1;
};
@@ -219,7 +219,7 @@ static struct debug_table_data batctl_debug_table_originators = {
.debugfs_name = "originators",
.header_lines = 2,
.netlink_fn = netlink_print_originators,
- .option_watch_interval = 1,
+ .option_timeout_interval = 1,
.option_orig_iface = 1,
};