dlm: eliminate astparam type casting

Put lkb_astparam in a union with a dlm_user_args pointer to
eliminate a lot of type casting.

Signed-off-by: David Teigland <teigland@redhat.com>
This commit is contained in:
David Teigland
2008-02-06 23:27:04 -06:00
parent e5dae548b0
commit d292c0cc48
6 changed files with 18 additions and 22 deletions
+4 -1
View File
@@ -253,7 +253,10 @@ struct dlm_lkb {
struct dlm_lksb *lkb_lksb; /* caller's status block */
void (*lkb_astfn) (void *astparam);
void (*lkb_bastfn) (void *astparam, int mode);
void *lkb_astparam; /* caller's ast arg */
union {
void *lkb_astparam; /* caller's ast arg */
struct dlm_user_args *lkb_ua;
};
};