They're used locally within one function so declare them there.
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/138
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
#include "kmod.h"
-#define DEFAULT_VERBOSE LOG_ERR
-static int verbose = DEFAULT_VERBOSE;
-static int use_syslog;
-
static const char cmdopts_s[] = "fsvVh";
static const struct option cmdopts[] = {
// clang-format off
{
struct kmod_ctx *ctx;
const char *null_config = NULL;
+ int verbose = LOG_ERR;
+ int use_syslog;
int flags = 0;
int i, err, r = 0;