]> git.ipfire.org Git - thirdparty/krb5.git/commit
Modernize iprop code
authorGreg Hudson <ghudson@mit.edu>
Thu, 23 Jan 2014 23:15:24 +0000 (18:15 -0500)
committerGreg Hudson <ghudson@mit.edu>
Wed, 5 Feb 2014 05:21:29 +0000 (00:21 -0500)
commit6506c87aab5567ae855d1f75dc9b41e1a091f542
treec89530754e2b89f273c127a5e569dd002f86683d
parent75b2ec88c4d75e7215322d2f0019307310cc9701
Modernize iprop code

* Don't use "extern" for kdb_log.h prototypes.
* Avoid passing structures by value.
* Avoid the need to cast the result of the INDEX macro, and use char *
  instead of unsigned long for pointer arithmetic.
* Reorganize kdb_log.c so static helpers are at the top and don't use
  the "ulog_" prefix.
* Get rid of ulog_finish_update_slave since it's more concise to
  open-code it in ulog_replay.
* Get rid of ulog_delete_update.  In krb5_db_delete_principal, just
  call ulog_add_update with kdb_deleted set in upd.
* Modernize coding style of kproplog.c.  Use k5memdup0 instead of
  snprintf in print_str to convert a byte range to a C string.
  Remove an unnecesary textdomain call; libkrb5 takes care of calling
  bindtextdomain in the library initializer.
* Modernize coding style of kpropd.c and kprop.c.

No functional changes.
src/include/kdb_log.h
src/kadmin/server/ipropd_svc.c
src/lib/kdb/kdb5.c
src/lib/kdb/kdb_log.c
src/slave/kprop.c
src/slave/kpropd.c
src/slave/kproplog.c