libsemanage: add extern prototype for legacy function

modules.c:171:13: warning: no previous prototype for ‘semanage_module_get_version’ [-Wmissing-prototypes]
      171 | const char *semanage_module_get_version(semanage_module_info_t * modinfo
          |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
This commit is contained in:
Christian Göttsche 2021-11-12 16:42:01 +01:00 committed by James Carter
parent 35273aa2bf
commit f7ec4b4a84
1 changed files with 1 additions and 0 deletions

View File

@ -168,6 +168,7 @@ const char *semanage_module_get_name(semanage_module_info_t * modinfo)
/* Legacy function that remains to preserve ABI /* Legacy function that remains to preserve ABI
* compatibility. * compatibility.
*/ */
extern const char *semanage_module_get_version(semanage_module_info_t *);
const char *semanage_module_get_version(semanage_module_info_t * modinfo const char *semanage_module_get_version(semanage_module_info_t * modinfo
__attribute__ ((unused))) __attribute__ ((unused)))
{ {