db: use wrapper for apk_db_add_repository in callback
Use a wrapper around apk_db_add_repository
when it is passed to
apk_db_add_repository
. The previous approach using transparent_union
is
fragile cause it converts void*
to struct apk_database*
without a cast.
And as a side effect linking against libapk doesn't require transparent_union
to be supported by the compiler.
Edited by Sertonix