matchpathcon_fini: annotate deprecated

Signed-off-by: William Roberts <william.c.roberts@intel.com>
This commit is contained in:
William Roberts 2020-04-15 16:14:26 -05:00
parent 708c2d9ca6
commit bcb39e6451

View File

@ -476,7 +476,11 @@ extern int matchpathcon_init(const char *path)
extern int matchpathcon_init_prefix(const char *path, const char *prefix);
/* Free the memory allocated by matchpathcon_init. */
extern void matchpathcon_fini(void);
extern void matchpathcon_fini(void)
#ifdef __GNUC__
__attribute__ ((deprecated("Use selabel_close")))
#endif
;
/* Resolve all of the symlinks and relative portions of a pathname, but NOT
* the final component (same a realpath() unless the final component is a