kmod_config: optimize config files handling
authorLucas De Marchi <lucas.demarchi@profusion.mobi>
Tue, 6 Dec 2011 04:26:22 +0000 (02:26 -0200)
committerLucas De Marchi <lucas.demarchi@profusion.mobi>
Tue, 6 Dec 2011 05:34:51 +0000 (03:34 -0200)
commitb7b7ac298f53db53bebbfeff9dae3e8e4f47724a
treee3147a05cd9e9c6d945787a229b1b926078139f7
parente16e27f4a482540de5adc3c6f02e425c227fcf32
kmod_config: optimize config files handling

 1) Allocate less by not sorting the result with qsort. Instead,
    insert the nodes in the correct order;
 2) Do not maintain the whole path in memory, but rely on openat()
libkmod/libkmod-config.c