From: Paul Park Date: Fri, 4 Aug 1995 20:33:35 +0000 (+0000) Subject: Replace hand-decoded integers with kdb macros X-Git-Tag: krb5-1.0-beta6~1409 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=934721790fd53942694cca74d57da4daf1cddc52;p=krb5.git Replace hand-decoded integers with kdb macros git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6415 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/kadmin/v5client/ChangeLog b/src/kadmin/v5client/ChangeLog index 0daaad3ad..730f62c37 100644 --- a/src/kadmin/v5client/ChangeLog +++ b/src/kadmin/v5client/ChangeLog @@ -1,4 +1,8 @@ +Fri Aug 4 16:13:20 EDT 1995 Paul Park (pjpark@mit.edu) + * kadmin5.c - Replace explicit hand-decoded integers with macros. + + Thu Aug 3 11:37:39 EDT 1995 Paul Park (pjpark@mit.edu) * kadmin5,convert.c - Update to use new database entry format and string conversion functions. diff --git a/src/kadmin/v5client/kadmin5.c b/src/kadmin/v5client/kadmin5.c index 3001a26c8..627a894e3 100644 --- a/src/kadmin/v5client/kadmin5.c +++ b/src/kadmin/v5client/kadmin5.c @@ -313,17 +313,11 @@ kadmin_print_entry(name, valid, dbentp) for (tl=dbentp->tl_data; tl; tl = tl->tl_data_next) { switch (tl->tl_data_type) { case KRB5_TL_LAST_PWD_CHANGE: - *(((krb5_octet *) (&now))) = tl->tl_data_contents[0]; - *(((krb5_octet *) (&now)) + 1) = tl->tl_data_contents[1]; - *(((krb5_octet *) (&now)) + 2) = tl->tl_data_contents[2]; - *(((krb5_octet *) (&now)) + 3) = tl->tl_data_contents[3]; + krb5_kdb_decode_int32(tl->tl_data_contents, now); printf(db_print_4_fmt, abs2string(now)); break; case KRB5_TL_MOD_PRINC: - *(((krb5_octet *) (&now))) = tl->tl_data_contents[0]; - *(((krb5_octet *) (&now)) + 1) = tl->tl_data_contents[1]; - *(((krb5_octet *) (&now)) + 2) = tl->tl_data_contents[2]; - *(((krb5_octet *) (&now)) + 3) = tl->tl_data_contents[3]; + krb5_kdb_decode_int32(tl->tl_data_contents, now); printf(db_print_7_fmt, &tl->tl_data_contents[4], abs2string(now)); break; default: