@@ -206,7 +206,7 @@ static int bool_isvalid(struct cond_bool_datum *b)
206206 return 1 ;
207207}
208208
209- int cond_read_bool (struct policydb * p , struct symtab * s , void * fp )
209+ int cond_read_bool (struct policydb * p , struct symtab * s , struct policy_file * fp )
210210{
211211 char * key = NULL ;
212212 struct cond_bool_datum * booldatum ;
@@ -323,7 +323,7 @@ static int cond_insertf(struct avtab *a, const struct avtab_key *k,
323323 return 0 ;
324324}
325325
326- static int cond_read_av_list (struct policydb * p , void * fp ,
326+ static int cond_read_av_list (struct policydb * p , struct policy_file * fp ,
327327 struct cond_av_list * list ,
328328 struct cond_av_list * other )
329329{
@@ -375,7 +375,7 @@ static int expr_node_isvalid(struct policydb *p, struct cond_expr_node *expr)
375375 return 1 ;
376376}
377377
378- static int cond_read_node (struct policydb * p , struct cond_node * node , void * fp )
378+ static int cond_read_node (struct policydb * p , struct cond_node * node , struct policy_file * fp )
379379{
380380 __le32 buf [2 ];
381381 u32 i , len ;
@@ -415,7 +415,7 @@ static int cond_read_node(struct policydb *p, struct cond_node *node, void *fp)
415415 return cond_read_av_list (p , fp , & node -> false_list , & node -> true_list );
416416}
417417
418- int cond_read_list (struct policydb * p , void * fp )
418+ int cond_read_list (struct policydb * p , struct policy_file * fp )
419419{
420420 __le32 buf [1 ];
421421 u32 i , len ;
@@ -453,7 +453,7 @@ int cond_write_bool(void *vkey, void *datum, void *ptr)
453453 char * key = vkey ;
454454 struct cond_bool_datum * booldatum = datum ;
455455 struct policy_data * pd = ptr ;
456- void * fp = pd -> fp ;
456+ struct policy_file * fp = pd -> fp ;
457457 __le32 buf [3 ];
458458 u32 len ;
459459 int rc ;
@@ -536,7 +536,7 @@ static int cond_write_node(struct policydb *p, struct cond_node *node,
536536 return 0 ;
537537}
538538
539- int cond_write_list (struct policydb * p , void * fp )
539+ int cond_write_list (struct policydb * p , struct policy_file * fp )
540540{
541541 u32 i ;
542542 __le32 buf [1 ];
0 commit comments