diff options
| author | Ben Kaduk <kaduk@mit.edu> | 2012-06-27 14:28:16 -0400 |
|---|---|---|
| committer | Ben Kaduk <kaduk@mit.edu> | 2012-07-02 18:47:15 -0400 |
| commit | 203de6ef59348a41f2702dabd554c3f1b12cd5da (patch) | |
| tree | 03197d7cd19c8121a1c32aa52d7474fad84e8f63 /src/lib | |
| parent | b5da0b454caf1057d8dc9669737ffe89be5551e4 (diff) | |
| download | krb5-203de6ef59348a41f2702dabd554c3f1b12cd5da.tar.gz krb5-203de6ef59348a41f2702dabd554c3f1b12cd5da.tar.xz krb5-203de6ef59348a41f2702dabd554c3f1b12cd5da.zip | |
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.
Diffstat (limited to 'src/lib')
| -rw-r--r-- | 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 e99873b7d..a9e1eb477 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 |
