Previously, we had one copy in select.c and another copy in
interactive.c. Define a single copy in adu.c instead and use
it from both interactive.c and select.c.
#include "string.h"
#include "error.h"
#include "portable_io.h"
+#include "select.cmdline.h"
DEFINE_ERRLIST;
int osl_errno;
/** Command line and config file options. */
struct gengetopt_args_info conf;
+/** Options passed to --select-options. */
+struct select_args_info select_conf;
+
/** The number of different uids found so far. */
uint32_t num_uids = 0;
extern uint32_t num_uids;
extern struct osl_table *dir_table;
extern struct gengetopt_args_info conf;
+extern struct select_args_info select_conf;
/* adu.c */
__printf_2_3 void __log(int, const char*, ...);
#include "cmdline.h"
#include "select.cmdline.h"
-struct select_args_info select_conf;
-
struct interactive_command {
const char *name;
int (*handler)(char *);
static const char size_unit_abbrevs[] = " BKMGT";
static const char count_unit_abbrevs[] = " kmgt";
-struct select_args_info select_conf;
static struct uid_range *admissible_uids;
static enum enum_size_unit format_size_value(enum enum_size_unit unit,