Define a localtime_r wrapper around localtime if the system doesn't
authorKen Raeburn <raeburn@mit.edu>
Fri, 29 Jun 2007 02:32:02 +0000 (02:32 +0000)
committerKen Raeburn <raeburn@mit.edu>
Fri, 29 Jun 2007 02:32:02 +0000 (02:32 +0000)
commite3e5b00bee940b94c4c6299d096e105336c4596b
treee96cfd9756af7ddee7f4de112c5e1df4128ef2e1
parent0d5aa03bb1256279569d8e825e3a7531b2dd2f32
Define a localtime_r wrapper around localtime if the system doesn't
provide localtime_r, instead of handling it in-line.  Check for error
indication from localtime_r.  Call localtime_r only once instead of
each time around the loop.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19655 dc483132-0cff-0310-8789-dd5450dbe970
src/lib/krb5/krb/str_conv.c