From 797a5869bcbe79fa3a782d74583f6755e4449a36 Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Fri, 13 Oct 2006 19:05:05 +0000 Subject: [PATCH] Add prototype for krb5int_debug_fprint to os-proto.h. Include os-proto.h in sn2princ.c. Cleans up warning for function definition w/o prototype. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18694 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/os/os-proto.h | 2 ++ src/lib/krb5/os/sn2princ.c | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/lib/krb5/os/os-proto.h b/src/lib/krb5/os/os-proto.h index 2e270d5c5..33acd0c46 100644 --- a/src/lib/krb5/os/os-proto.h +++ b/src/lib/krb5/os/os-proto.h @@ -56,6 +56,8 @@ krb5_error_code krb5_try_realm_txt_rr(const char *, const char *, /* Obsolete interface - leave prototype here until code removed */ krb5_error_code krb5_secure_config_files(krb5_context ctx); +void krb5int_debug_fprint (const char *fmt, ...); + int _krb5_use_dns_realm (krb5_context); int _krb5_use_dns_kdc (krb5_context); int _krb5_conf_boolean (const char *); diff --git a/src/lib/krb5/os/sn2princ.c b/src/lib/krb5/os/sn2princ.c index 683cc10cb..8df591138 100644 --- a/src/lib/krb5/os/sn2princ.c +++ b/src/lib/krb5/os/sn2princ.c @@ -29,6 +29,7 @@ */ #include "k5-int.h" +#include "os-proto.h" #include "fake-addrinfo.h" #include #ifdef HAVE_SYS_PARAM_H @@ -68,8 +69,6 @@ krb5_sname_to_principal(krb5_context context, const char *hostname, const char * register char *cp; char localname[MAXHOSTNAMELEN]; - FILE *log; - #ifdef DEBUG_REFERRALS printf("krb5_sname_to_principal(host=%s, sname=%s, type=%d)\n",hostname,sname,type); printf(" name types: 0=unknown, 3=srv_host\n"); -- 2.26.2