diff options
author | Lucas De Marchi <lucas.demarchi@intel.com> | 2014-10-08 14:33:42 -0300 |
---|---|---|
committer | Lucas De Marchi <lucas.demarchi@intel.com> | 2014-10-09 01:26:39 -0300 |
commit | b95506ff6141aa65a46eef80fa0f0b06f9896712 (patch) | |
tree | 8405734f044fb8d8f4793c69f448f65b9e85de3f /tools | |
parent | fdafa6b6556d07cfd4cfd09dd5174c347ddd3f9a (diff) | |
download | kmod-b95506ff6141aa65a46eef80fa0f0b06f9896712.tar.gz kmod-b95506ff6141aa65a46eef80fa0f0b06f9896712.tar.bz2 kmod-b95506ff6141aa65a46eef80fa0f0b06f9896712.zip |
Do not export array of kmod extensions
The only user outside of libkmod-util is depmod, which really only needs
to get the string for the extension of uncompressed modules. It doesn't
need to access the array itself.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/depmod.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/depmod.c b/tools/depmod.c index 74bc41f..ed1880f 100644 --- a/tools/depmod.c +++ b/tools/depmod.c @@ -1083,7 +1083,7 @@ static int depmod_module_add(struct depmod *depmod, struct kmod_module *kmod) if (mod->relpath != NULL) { size_t uncrelpathlen = lastslash - mod->relpath + modnamesz - + kmod_exts[KMOD_EXT_UNC].len; + + strlen(KMOD_EXTENSION_UNCOMPRESSED); mod->uncrelpath = memdup(mod->relpath, uncrelpathlen + 1); mod->uncrelpath[uncrelpathlen] = '\0'; err = hash_add_unique(depmod->modules_by_uncrelpath, |