]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Resolve no-previous-prototype warning in os/cm.c
authorBen Kaduk <kaduk@mit.edu>
Wed, 27 Jun 2012 18:28:16 +0000 (14:28 -0400)
committerBen Kaduk <kaduk@mit.edu>
Mon, 2 Jul 2012 22:47:15 +0000 (18:47 -0400)
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.

src/lib/krb5/os/cm.c

index e99873b7df4a455e0c95f7cb64364799823a0af0..a9e1eb4779441bc0dcd0cc989d8219b3d6f12186 100644 (file)
@@ -30,6 +30,7 @@
  */
 
 #include "k5-int.h"
+#include "os-proto.h"
 #ifdef HAVE_SYS_SELECT_H
 #include <sys/select.h>
 #endif