krb5 commit: Resolve no-previous-prototype warning in os/cm.c

Benjamin Kaduk kaduk at MIT.EDU
Tue Jul 3 00:43:51 EDT 2012


https://github.com/krb5/krb5/commit/203de6ef59348a41f2702dabd554c3f1b12cd5da
commit 203de6ef59348a41f2702dabd554c3f1b12cd5da
Author: Ben Kaduk <kaduk at mit.edu>
Date:   Wed Jun 27 14:28:16 2012 -0400

    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.

 src/lib/krb5/os/cm.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/lib/krb5/os/cm.c b/src/lib/krb5/os/cm.c
index e99873b..a9e1eb4 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 <sys/select.h>
 #endif


More information about the cvs-krb5 mailing list