]> git.ipfire.org Git - thirdparty/kmod.git/commit
kmod_module: use pointer instead of vector for its name
authorLucas De Marchi <lucas.demarchi@profusion.mobi>
Tue, 13 Dec 2011 15:07:40 +0000 (13:07 -0200)
committerLucas De Marchi <lucas.demarchi@profusion.mobi>
Tue, 13 Dec 2011 15:15:49 +0000 (13:15 -0200)
commit219f9c38bb283f6173ed37d1eb54671e1ca52349
tree9240fc5065eb089c8540278224d065ce8fe95846
parentecd6bcd2045949b89ea238fe28750931657c561e
kmod_module: use pointer instead of vector for its name

We still have name allocated just after the struct kmod_module, but
now we use a pointer instead of putting name as a vector in the end of
the structure.

The previous way has some problems, the worst is:
- it's not possible to swap the name with another value: this is
  the real problem that this patch is solving. Later patches
  will make name be swappable with alias, which is not possible
  if name is a vector.
libkmod/libkmod-module.c