rpmsp.c | rpmsp.c | |||
---|---|---|---|---|
/** \ingroup rpmio | /** \ingroup rpmio | |||
* \file rpmio/rpmsp.c | * \file rpmio/rpmsp.c | |||
*/ | */ | |||
#include "system.h" | #include "system.h" | |||
#if defined(WITH_SEPOL) | #if defined(WITH_SEPOL) | |||
#ifdef __cplusplus | ||||
extern "C" { | ||||
#endif | ||||
#include <sepol/sepol.h> | #include <sepol/sepol.h> | |||
#ifdef __cplusplus | ||||
} | ||||
#endif | ||||
#endif | #endif | |||
#define _RPMSP_INTERNAL | #define _RPMSP_INTERNAL | |||
#include <rpmsp.h> | #include <rpmsp.h> | |||
#include <rpmlog.h> | #include <rpmlog.h> | |||
#include <rpmmacro.h> | #include <rpmmacro.h> | |||
#include "debug.h" | #include "debug.h" | |||
/*@unchecked@*/ | /*@unchecked@*/ | |||
int _rpmsp_debug = 0; | int _rpmsp_debug = 0; | |||
/*@unchecked@*/ /*@relnull@*/ | /*@unchecked@*/ /*@relnull@*/ | |||
rpmsp _rpmspI = NULL; | rpmsp _rpmspI = NULL; | |||
static void rpmspFini(void * _sp) | static void rpmspFini(void * _sp) | |||
/*@globals fileSystem @*/ | /*@globals fileSystem @*/ | |||
/*@modifies *_sp, fileSystem @*/ | /*@modifies *_sp, fileSystem @*/ | |||
{ | { | |||
rpmsp sp = _sp; | rpmsp sp = (rpmsp) _sp; | |||
#if defined(WITH_SEPOL) | #if defined(WITH_SEPOL) | |||
if (sp->P) | if (sp->P) | |||
sepol_module_package_free(sp->P); | sepol_module_package_free(sp->P); | |||
if (sp->C) | if (sp->C) | |||
sepol_context_free(sp->C); | sepol_context_free(sp->C); | |||
if (sp->F) | if (sp->F) | |||
sepol_policy_file_free(sp->F); | sepol_policy_file_free(sp->F); | |||
if (sp->DB) | if (sp->DB) | |||
sepol_policydb_free(sp->DB); | sepol_policydb_free(sp->DB); | |||
End of changes. 3 change blocks. | ||||
1 lines changed or deleted | 7 lines changed or added | |||
This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/ |