From: Ben Kaduk Date: Wed, 27 Jun 2012 18:28:16 +0000 (-0400) Subject: Resolve no-previous-prototype warning in os/cm.c X-Git-Tag: krb5-1.11-alpha1~464 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=203de6ef59348a41f2702dabd554c3f1b12cd5da;p=thirdparty%2Fkrb5.git Resolve no-previous-prototype warning in os/cm.c The warning is ../../../../krb5/src/lib/krb5/os/cm.c:43: warning: no previous prototype for 'k5 _getcurtime' which occurs because int k5_getcurtime(struct timeval *tvp) is defined (and used) in cm.c but there is no forward declaration. Include the os-proto.h (internal) header which declares this function to eliminate the warning. k5_getcurtime() is the first declaration in cm.c, so there is not an ABI concern. The only other consumer of k5_getcurtime(), sendto_kdc.c, already includes os-proto.h, so this issue is purely cosmetic. --- diff --git a/src/lib/krb5/os/cm.c b/src/lib/krb5/os/cm.c index e99873b7df..a9e1eb4779 100644 --- a/src/lib/krb5/os/cm.c +++ b/src/lib/krb5/os/cm.c @@ -30,6 +30,7 @@ */ #include "k5-int.h" +#include "os-proto.h" #ifdef HAVE_SYS_SELECT_H #include #endif