*/
int roles_init(struct policydb *p)
{
- char *key = NULL;
+ char *key = 0;
int rc;
struct role_datum *role;
kfree(key);
comdatum = datum;
- hashtab_map(comdatum->permissions.table, perm_destroy, NULL);
+ hashtab_map(comdatum->permissions.table, perm_destroy, 0);
hashtab_destroy(comdatum->permissions.table);
kfree(datum);
return 0;
kfree(key);
cladatum = datum;
- hashtab_map(cladatum->permissions.table, perm_destroy, NULL);
+ hashtab_map(cladatum->permissions.table, perm_destroy, 0);
hashtab_destroy(cladatum->permissions.table);
constraint = cladatum->constraints;
while (constraint) {
int i;
for (i = 0; i < SYM_NUM; i++) {
- hashtab_map(p->symtab[i].table, destroy_f[i], NULL);
+ hashtab_map(p->symtab[i].table, destroy_f[i], 0);
hashtab_destroy(p->symtab[i].table);
}
static int perm_read(struct policydb *p, struct hashtab *h, void *fp)
{
- char *key = NULL;
+ char *key = 0;
struct perm_datum *perdatum;
int rc;
u32 *buf, len;
static int common_read(struct policydb *p, struct hashtab *h, void *fp)
{
- char *key = NULL;
+ char *key = 0;
struct common_datum *comdatum;
u32 *buf, len, nel;
int i, rc;
static int class_read(struct policydb *p, struct hashtab *h, void *fp)
{
- char *key = NULL;
+ char *key = 0;
struct class_datum *cladatum;
struct constraint_node *c, *lc;
struct constraint_expr *e, *le;
static int role_read(struct policydb *p, struct hashtab *h, void *fp)
{
- char *key = NULL;
+ char *key = 0;
struct role_datum *role;
int rc;
u32 *buf, len;
static int type_read(struct policydb *p, struct hashtab *h, void *fp)
{
- char *key = NULL;
+ char *key = 0;
struct type_datum *typdatum;
int rc;
u32 *buf, len;
static int user_read(struct policydb *p, struct hashtab *h, void *fp)
{
- char *key = NULL;
+ char *key = 0;
struct user_datum *usrdatum;
int rc;
u32 *buf, len;