Reuse code of main.c files
The main.c
files in pkgupdate
, migrator
and opkg-trans
look similar to each other. Unfortunately, there are no long identical parts that could be easilly put into a shared function.
Some way to pass (a lot of) parameters in and out needs to be found and share the code there, without increasing complexity too much.