venus: Remove dedebug
[openafs.git] / src / aklog / krb_util.c
index 1ef5ceb..ea66732 100644 (file)
@@ -2,7 +2,7 @@
  * This file replaces some of the routines in the Kerberos utilities.
  * It is based on the Kerberos library modules:
  *     send_to_kdc.c
- * 
+ *
  * Copyright 1987, 1988, 1992 by the Massachusetts Institute of Technology.
  *
  * For copying and distribution information, please see the file
  */
 
 #include <afsconfig.h>
-
-#if 0
-#include <kerberosIV/mit-copyright.h>
-#endif
 #include <afs/stds.h>
+
+#include <roken.h>
+
+#define KERBEROS_APPLE_DEPRECATED(x)
 #include "aklog.h"
 #include <krb5.h>
 
@@ -24,7 +24,6 @@
 
 #include <afs/cellconfig.h>
 
-#include <string.h>
 #include <ctype.h>
 
 #define S_AD_SZ sizeof(struct sockaddr_in)
@@ -46,13 +45,13 @@ char *afs_realm_of_cell(krb5_context context, struct afsconf_cell *cellconfig, i
        else
            strcpy(krbrlm, cellconfig->name);
        for (p=krbrlm; *p; p++) {
-           if (islower(*p)) 
+           if (islower(*p))
                *p = toupper(*p);
        }
     } else {
        if ((retval = krb5_get_host_realm(context,
                                         cellconfig->hostName[0], &hrealms)))
-           return 0; 
+           return 0;
        if(!hrealms[0]) return 0;
        strcpy(krbrlm, hrealms[0]);