static const char CFG_BUILTIN_KEY[] = "built-in";
static const char CFG_EXTERNAL_KEY[] = "external";
static const char *const default_cfg_paths[] = {
+ // clang-format off
SYSCONFDIR "/depmod.d",
"/run/depmod.d",
"/usr/local/lib/depmod.d",
DISTCONFDIR "/depmod.d",
"/lib/depmod.d",
NULL,
+ // clang-format on
};
static const char cmdopts_s[] = "aAb:o:C:E:F:euqrvnP:wmVh";
};
static const struct kmod_cmd *kmod_compat_cmds[] = {
+ // clang-format off
&kmod_cmd_compat_lsmod,
&kmod_cmd_compat_rmmod,
&kmod_cmd_compat_insmod,
&kmod_cmd_compat_modinfo,
&kmod_cmd_compat_modprobe,
&kmod_cmd_compat_depmod,
+ // clang-format on
};
static int kmod_help(int argc, char *argv[])
static const char cmdopts_s[] = "fsvVwh";
static const struct option cmdopts[] = {
- {"force", no_argument, 0, 'f'},
- {"syslog", no_argument, 0, 's'},
- {"verbose", no_argument, 0, 'v'},
- {"version", no_argument, 0, 'V'},
- {"help", no_argument, 0, 'h'},
- {NULL, 0, 0, 0},
+ // clang-format off
+ { "force", no_argument, 0, 'f' },
+ { "syslog", no_argument, 0, 's' },
+ { "verbose", no_argument, 0, 'v' },
+ { "version", no_argument, 0, 'V' },
+ { "help", no_argument, 0, 'h' },
+ { NULL, 0, 0, 0 },
+ // clang-format on
};
static void help(void)