#if !DLSYM_LOCALLY_ENABLED
return 0;
#else
- static void *dl = NULL;
+ static void *dl;
ELF_NOTE_DLOPEN("xz", "Support for uncompressing xz-compressed modules",
ELF_NOTE_DLOPEN_PRIORITY_RECOMMENDED, "liblzma.so.5");
#if !DLSYM_LOCALLY_ENABLED
return 0;
#else
- static void *dl = NULL;
+ static void *dl;
ELF_NOTE_DLOPEN("zlib", "Support for uncompressing zlib-compressed modules",
ELF_NOTE_DLOPEN_PRIORITY_RECOMMENDED, "libz.so.1");
#if !DLSYM_LOCALLY_ENABLED
return 0;
#else
- static void *dl = NULL;
+ static void *dl;
ELF_NOTE_DLOPEN("zstd", "Support for uncompressing zstd-compressed modules",
ELF_NOTE_DLOPEN_PRIORITY_RECOMMENDED, "libzstd.so.1");
#define DLSYM_ARG(symbol__) &sym_##symbol__, STRINGIFY(symbol__),
/* For symbols being dynamically loaded */
-#define DECLARE_DLSYM(symbol) static typeof(symbol) *sym_##symbol = NULL
+#define DECLARE_DLSYM(symbol) static typeof(symbol) *sym_##symbol
/* Pointer indirection to support linking directly */
#define DECLARE_PTRSYM(symbol) static typeof(symbol) *sym_##symbol = symbol
static const char *ANSI_HIGHLIGHT_OFF = "\x1B[0m";
static const char *progname;
-static int oneshot = 0;
+static int oneshot;
static const char options_short[] = "lhn";
static const struct option options[] = {
{ "list", no_argument, 0, 'l' },
#include "kmod.h"
static char separator = '\n';
-static const char *field = NULL;
+static const char *field;
struct param {
struct param *next;
#define DEFAULT_VERBOSE LOG_WARNING
static int verbose = DEFAULT_VERBOSE;
-static int do_show = 0;
-static int dry_run = 0;
-static int ignore_loaded = 0;
-static int lookup_only = 0;
-static int first_time = 0;
-static int ignore_commands = 0;
-static int use_blacklist = 0;
-static int force = 0;
-static int strip_modversion = 0;
-static int strip_vermagic = 0;
-static int remove_holders = 0;
-static unsigned long long wait_msec = 0;
-static int quiet_inuse = 0;
+static int do_show;
+static int dry_run;
+static int ignore_loaded;
+static int lookup_only;
+static int first_time;
+static int ignore_commands;
+static int use_blacklist;
+static int force;
+static int strip_modversion;
+static int strip_vermagic;
+static int remove_holders;
+static unsigned long long wait_msec;
+static int quiet_inuse;
static const char cmdopts_s[] = "arw:RibfDcnC:d:S:sqvVh";
static const struct option cmdopts[] = {