module: const:ify ‘module’ argument to module->description()

This commit is contained in:
Daniel Eklöf 2022-12-14 12:05:17 +01:00
parent 6794193791
commit 3ca274759a
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
22 changed files with 26 additions and 26 deletions

View file

@ -107,10 +107,10 @@ destroy(struct module *mod)
}
static const char *
description(struct module *mod)
description(const struct module *mod)
{
static char desc[32];
struct private *m = mod->private;
const struct private *m = mod->private;
snprintf(desc, sizeof(desc), "net(%s)", m->iface);
return desc;