modprobe: refactor read_aliases()
authorAlan Jenkins <alan-jenkins@tuffmail.co.uk>
Fri, 26 Feb 2010 14:43:29 +0000 (14:43 +0000)
committerAlan Jenkins <alan-jenkins@tuffmail.co.uk>
Fri, 26 Feb 2010 15:05:43 +0000 (15:05 +0000)
commit4ad092b0bf31c28ccd5c03a7d86e93eba688044b
tree10633ec53524f9de7ba1af3414b980f3db4bd88e
parent02dfb96d490b2d85ce01d5d7312150e18e7be7df
modprobe: refactor read_aliases()

It doesn't care whether we are "removing", and it only parses aliases
(not an entire config).

Enhance readability by splitting it into two functions, for binary
and text files respectively.  This matches the way read_depends()
is written.

Fix some sites to use read_aliases() instead of parse_config_file().
modprobe.c