Do not assume sizeof(bool_t) == sizeof(krb5_boolean)
authorEzra Peisach <epeisach@mit.edu>
Fri, 6 Feb 2009 05:22:34 +0000 (05:22 +0000)
committerEzra Peisach <epeisach@mit.edu>
Fri, 6 Feb 2009 05:22:34 +0000 (05:22 +0000)
commitf14989c3ee872225c22024012583986a7db43f06
tree2ee7d217491243ba85278aa32ef2f33cab37bb7e
parentf211cbd5c6cf78c4c80d2893c4a866784059ef6d
Do not assume sizeof(bool_t) == sizeof(krb5_boolean)

bool_t is defined as int, krb5_boolean as unsigned int.  These are
similar size but someone someday might change the krb5_boolean.
Instead of passing a krb5_boolean * to xdr_bool, implement xdr_krb5_boolean
which keeps the different types separate.

This cleans up a number of warnings.

ticket: 6374

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@21906 dc483132-0cff-0310-8789-dd5450dbe970
src/lib/kadm5/kadm_rpc_xdr.c