Fix module initialization when more than 1 class is in use
authorAnthony Liguori <aliguori@us.ibm.com>
Thu, 14 May 2009 22:57:31 +0000 (17:57 -0500)
committerAnthony Liguori <aliguori@us.ibm.com>
Thu, 14 May 2009 23:06:49 +0000 (18:06 -0500)
commit14abc18fb8a26ed33cdd1cc7f1ef00d9d411fc23
tree9d94be3c723a473f529074becb19cad654664ca7
parentddf65e133dd65134f99647f5e33e9b1e73a3aabd
Fix module initialization when more than 1 class is in use

Now that we're using enums for module types, it makes no sense to bother keeping
a list of module types when we know exactly how many they are.

Switching to an array simplifies the code and eliminates the aforementioned bug.

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
module.c
module.h