From 5498512cece260d62e58988eec4982d77437a089 Mon Sep 17 00:00:00 2001 From: Nathan Neulinger Date: Fri, 5 Oct 2001 22:17:18 +0000 Subject: [PATCH] kauth-warning-cleanup-20011005 cleanup warnings from kauth (add headers) --- src/kauth/authclient.c | 7 +++++++ src/kauth/client.c | 7 +++++++ src/kauth/kaauxdb.c | 12 ++++++++++-- src/kauth/kadatabase.c | 7 +++++++ src/kauth/kalocalcell.c | 7 +++++++ src/kauth/kalog.c | 8 +++++++- src/kauth/kas.c | 7 +++++++ src/kauth/kaserver.c | 11 ++++++++++- src/kauth/kautils.c | 7 +++++++ src/kauth/klog.c | 7 +++++++ src/kauth/kpasswd.c | 7 +++++++ src/kauth/kpwvalid.c | 7 +++++++ src/kauth/krb_tf.c | 11 ++++++++++- src/kauth/krb_udp.c | 7 +++++++ src/kauth/rebuild.c | 7 +++++++ src/kauth/token.c | 7 +++++++ src/kauth/user.c | 7 +++++++ 17 files changed, 128 insertions(+), 5 deletions(-) diff --git a/src/kauth/authclient.c b/src/kauth/authclient.c index 704595aaf..82d7ecd5e 100644 --- a/src/kauth/authclient.c +++ b/src/kauth/authclient.c @@ -45,6 +45,13 @@ RCSID("$Header$"); #include #include #endif +#ifdef HAVE_STRING_H +#include +#else +#ifdef HAVE_STRINGS_H +#include +#endif +#endif #include #include #include diff --git a/src/kauth/client.c b/src/kauth/client.c index c16c3d54b..8678c579c 100644 --- a/src/kauth/client.c +++ b/src/kauth/client.c @@ -37,6 +37,13 @@ RCSID("$Header$"); #include #include #endif +#ifdef HAVE_STRING_H +#include +#else +#ifdef HAVE_STRINGS_H +#include +#endif +#endif #include #include #include diff --git a/src/kauth/kaauxdb.c b/src/kauth/kaauxdb.c index d1275e3ca..280f29598 100644 --- a/src/kauth/kaauxdb.c +++ b/src/kauth/kaauxdb.c @@ -16,13 +16,21 @@ RCSID("$Header$"); -#include #ifdef AFS_NT40_ENV -#include #include #else #include #endif +#ifdef HAVE_FCNTL_H +#include +#endif +#ifdef HAVE_STRING_H +#include +#else +#ifdef HAVE_STRINGS_H +#include +#endif +#endif #include #include "ubik_int.h" #include "kauth.h" diff --git a/src/kauth/kadatabase.c b/src/kauth/kadatabase.c index e70b30d69..d0a96ffae 100644 --- a/src/kauth/kadatabase.c +++ b/src/kauth/kadatabase.c @@ -18,6 +18,13 @@ RCSID("$Header$"); #else #include #endif +#ifdef HAVE_STRING_H +#include +#else +#ifdef HAVE_STRINGS_H +#include +#endif +#endif #include #include #include diff --git a/src/kauth/kalocalcell.c b/src/kauth/kalocalcell.c index 9047d12eb..8b0126203 100644 --- a/src/kauth/kalocalcell.c +++ b/src/kauth/kalocalcell.c @@ -36,6 +36,13 @@ RCSID("$Header$"); #else #include #endif +#ifdef HAVE_STRING_H +#include +#else +#ifdef HAVE_STRINGS_H +#include +#endif +#endif #include #include #include diff --git a/src/kauth/kalog.c b/src/kauth/kalog.c index e95ab32fd..c48b679ae 100644 --- a/src/kauth/kalog.c +++ b/src/kauth/kalog.c @@ -23,10 +23,16 @@ RCSID("$Header$"); #include #include -#ifndef AFS_NT40_ENV +#ifdef HAVE_STRING_H +#include +#else +#ifdef HAVE_STRINGS_H #include #endif +#endif +#ifdef HAVE_FCNTL_H #include +#endif #include #include #include diff --git a/src/kauth/kas.c b/src/kauth/kas.c index b7694199f..1de47739f 100644 --- a/src/kauth/kas.c +++ b/src/kauth/kas.c @@ -28,6 +28,13 @@ RCSID("$Header$"); #else #include #endif +#ifdef HAVE_STRING_H +#include +#else +#ifdef HAVE_STRINGS_H +#include +#endif +#endif #include #include diff --git a/src/kauth/kaserver.c b/src/kauth/kaserver.c index c8a83d323..7a62c2821 100644 --- a/src/kauth/kaserver.c +++ b/src/kauth/kaserver.c @@ -15,7 +15,6 @@ RCSID("$Header$"); #include #include #ifdef AFS_NT40_ENV -#include #include #include #else @@ -26,6 +25,16 @@ RCSID("$Header$"); #include "kalog.h" /* for OpenLog() */ #include #include +#ifdef HAVE_STRING_H +#include +#else +#ifdef HAVE_STRINGS_H +#include +#endif +#endif +#ifdef HAVE_FCNTL_H +#include +#endif #ifdef AFS_AIX32_ENV #include #endif diff --git a/src/kauth/kautils.c b/src/kauth/kautils.c index a240d938b..397bdd787 100644 --- a/src/kauth/kautils.c +++ b/src/kauth/kautils.c @@ -21,6 +21,13 @@ RCSID("$Header$"); #include #include #endif +#ifdef HAVE_STRING_H +#include +#else +#ifdef HAVE_STRINGS_H +#include +#endif +#endif #include #include #include diff --git a/src/kauth/klog.c b/src/kauth/klog.c index 485c59a1a..b07094a81 100644 --- a/src/kauth/klog.c +++ b/src/kauth/klog.c @@ -18,6 +18,13 @@ RCSID("$Header$"); #ifdef AFS_AIX32_ENV #include #endif +#ifdef HAVE_STRING_H +#include +#else +#ifdef HAVE_STRINGS_H +#include +#endif +#endif #include #include diff --git a/src/kauth/kpasswd.c b/src/kauth/kpasswd.c index 0db876f43..b524cfccc 100644 --- a/src/kauth/kpasswd.c +++ b/src/kauth/kpasswd.c @@ -28,6 +28,13 @@ RCSID("$Header$"); #ifndef AFS_NT40_ENV #include #endif +#ifdef HAVE_STRING_H +#include +#else +#ifdef HAVE_STRINGS_H +#include +#endif +#endif #include #include #include diff --git a/src/kauth/kpwvalid.c b/src/kauth/kpwvalid.c index 07f26c34a..8653f9c71 100644 --- a/src/kauth/kpwvalid.c +++ b/src/kauth/kpwvalid.c @@ -13,6 +13,13 @@ RCSID("$Header$"); #include +#ifdef HAVE_STRING_H +#include +#else +#ifdef HAVE_STRINGS_H +#include +#endif +#endif #ifdef AFS_NT40_ENV #include #endif diff --git a/src/kauth/krb_tf.c b/src/kauth/krb_tf.c index 2afb5464d..41cf8d1cb 100644 --- a/src/kauth/krb_tf.c +++ b/src/kauth/krb_tf.c @@ -49,12 +49,21 @@ RCSID("$Header$"); -#ifdef AFS_NT40_ENV +#ifdef HAVE_FCNTL_H #include +#endif +#ifdef AFS_NT40_ENV #include #else #include #endif +#ifdef HAVE_STRING_H +#include +#else +#ifdef HAVE_STRINGS_H +#include +#endif +#endif #include #include #include diff --git a/src/kauth/krb_udp.c b/src/kauth/krb_udp.c index 816ebd416..79dbf777d 100644 --- a/src/kauth/krb_udp.c +++ b/src/kauth/krb_udp.c @@ -27,6 +27,13 @@ RCSID("$Header$"); #include #include #endif +#ifdef HAVE_STRING_H +#include +#else +#ifdef HAVE_STRINGS_H +#include +#endif +#endif #include #include #include diff --git a/src/kauth/rebuild.c b/src/kauth/rebuild.c index e25f2a616..b3e6a94f5 100644 --- a/src/kauth/rebuild.c +++ b/src/kauth/rebuild.c @@ -22,6 +22,13 @@ RCSID("$Header$"); #include #include #endif +#ifdef HAVE_STRING_H +#include +#else +#ifdef HAVE_STRINGS_H +#include +#endif +#endif #include #include #include diff --git a/src/kauth/token.c b/src/kauth/token.c index 0de5a103b..646cc9e51 100644 --- a/src/kauth/token.c +++ b/src/kauth/token.c @@ -43,6 +43,13 @@ RCSID("$Header$"); #include #include #endif +#ifdef HAVE_STRING_H +#include +#else +#ifdef HAVE_STRINGS_H +#include +#endif +#endif /* netinet/in.h and cellconfig.h are needed together */ #include /* these are needed together */ diff --git a/src/kauth/user.c b/src/kauth/user.c index 00509706d..20ed0d962 100644 --- a/src/kauth/user.c +++ b/src/kauth/user.c @@ -44,6 +44,13 @@ RCSID("$Header$"); #else #include #endif +#ifdef HAVE_STRING_H +#include +#else +#ifdef HAVE_STRINGS_H +#include +#endif +#endif #include #include #include -- 2.39.5