svn rev #20344: trunk/src/kadmin/server/

lxs@MIT.EDU lxs at MIT.EDU
Fri May 30 14:28:36 EDT 2008


Commit By: lxs
Log Message: 
ticket: new
subject: Warnings in server_stubs.c (signed vs unsigned errmsg, gcc printf)

server_stubs.c uses char * for error messages which it gets from com_err, 
throwing away the constness of the com_err output.  Made error message args
be const char * to remove warnings and prevent accidental modification of
com_err strings.

In calls to krb5_klog_syslog server_stubs.c passes void* into %s printf
formats and passes size_ts in for the field widths in %.*s formats.  After
verifying that the size_ts cannot be bigger than ints (which is ensured by 
trunc_name) added casts to remove spurious warnings. 



Changed Files:
U   trunk/src/kadmin/server/server_stubs.c



More information about the cvs-krb5 mailing list