/*
* Local prototypes.
*/
-static bool store_int(char *, struct sudo_defs_types *, bool);
-static bool store_list(char *, struct sudo_defs_types *, bool);
-static bool store_mode(char *, struct sudo_defs_types *, bool);
-static bool store_str(char *, struct sudo_defs_types *, bool);
-static bool store_syslogfac(char *, struct sudo_defs_types *, bool);
-static bool store_syslogpri(char *, struct sudo_defs_types *, bool);
-static bool store_tuple(char *, struct sudo_defs_types *, bool);
-static bool store_uint(char *, struct sudo_defs_types *, bool);
-static bool store_float(char *, struct sudo_defs_types *, bool);
+static bool store_int(char *, struct sudo_defs_types *, int);
+static bool store_list(char *, struct sudo_defs_types *, int);
+static bool store_mode(char *, struct sudo_defs_types *, int);
+static bool store_str(char *, struct sudo_defs_types *, int);
+static bool store_syslogfac(char *, struct sudo_defs_types *, int);
+static bool store_syslogpri(char *, struct sudo_defs_types *, int);
+static bool store_tuple(char *, struct sudo_defs_types *, int);
+static bool store_uint(char *, struct sudo_defs_types *, int);
+static bool store_float(char *, struct sudo_defs_types *, int);
static void list_op(char *, size_t, struct sudo_defs_types *, enum list_ops);
static const char *logfac2str(int);
static const char *logpri2str(int);
* This is only meaningful for variables that are *optional*.
*/
bool
-set_default(char *var, char *val, bool op)
+set_default(char *var, char *val, int op)
{
struct sudo_defs_types *cur;
int num;
}
static bool
-store_int(char *val, struct sudo_defs_types *def, bool op)
+store_int(char *val, struct sudo_defs_types *def, int op)
{
char *endp;
long l;
}
static bool
-store_uint(char *val, struct sudo_defs_types *def, bool op)
+store_uint(char *val, struct sudo_defs_types *def, int op)
{
char *endp;
long l;
}
static bool
-store_float(char *val, struct sudo_defs_types *def, bool op)
+store_float(char *val, struct sudo_defs_types *def, int op)
{
char *endp;
double d;
}
static bool
-store_tuple(char *val, struct sudo_defs_types *def, bool op)
+store_tuple(char *val, struct sudo_defs_types *def, int op)
{
struct def_values *v;
debug_decl(store_tuple, SUDO_DEBUG_DEFAULTS)
}
static bool
-store_str(char *val, struct sudo_defs_types *def, bool op)
+store_str(char *val, struct sudo_defs_types *def, int op)
{
debug_decl(store_str, SUDO_DEBUG_DEFAULTS)
}
static bool
-store_list(char *str, struct sudo_defs_types *def, bool op)
+store_list(char *str, struct sudo_defs_types *def, int op)
{
char *start, *end;
debug_decl(store_list, SUDO_DEBUG_DEFAULTS)
}
static bool
-store_syslogfac(char *val, struct sudo_defs_types *def, bool op)
+store_syslogfac(char *val, struct sudo_defs_types *def, int op)
{
struct strmap *fac;
debug_decl(store_syslogfac, SUDO_DEBUG_DEFAULTS)
}
static bool
-store_syslogpri(char *val, struct sudo_defs_types *def, bool op)
+store_syslogpri(char *val, struct sudo_defs_types *def, int op)
{
struct strmap *pri;
debug_decl(store_syslogpri, SUDO_DEBUG_DEFAULTS)
}
static bool
-store_mode(char *val, struct sudo_defs_types *def, bool op)
+store_mode(char *val, struct sudo_defs_types *def, int op)
{
char *endp;
long l;