[26671] in CVS-changelog-for-Kerberos-V5

home help back first fref pref prev next nref lref last post

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

daemon@ATHENA.MIT.EDU (Benjamin Kaduk)
Tue Jul 3 11:08:40 2012

Date: Tue, 3 Jul 2012 00:43:51 -0400
From: Benjamin Kaduk <kaduk@mit.edu>
Message-Id: <201207030443.q634hp0b013627@drugstore.mit.edu>
To: cvs-krb5@mit.edu
Reply-To: krbdev@mit.edu
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: cvs-krb5-bounces@mit.edu

https://github.com/krb5/krb5/commit/203de6ef59348a41f2702dabd554c3f1b12cd5da
commit 203de6ef59348a41f2702dabd554c3f1b12cd5da
Author: Ben Kaduk <kaduk@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
_______________________________________________
cvs-krb5 mailing list
cvs-krb5@mit.edu
https://mailman.mit.edu/mailman/listinfo/cvs-krb5

home help back first fref pref prev next nref lref last post