Add prototype for krb5int_debug_fprint to os-proto.h. Include os-proto.h in
authorEzra Peisach <epeisach@mit.edu>
Fri, 13 Oct 2006 19:05:05 +0000 (19:05 +0000)
committerEzra Peisach <epeisach@mit.edu>
Fri, 13 Oct 2006 19:05:05 +0000 (19:05 +0000)
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
src/lib/krb5/os/sn2princ.c

index 2e270d5c570d298d551606697f49f3799b01a40d..33acd0c4663e458ae2585db79d9721b2358c0821 100644 (file)
@@ -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 *);
index 683cc10cb829714fbb829ff00e9d45806c004372..8df591138366babdbe407eaadb083b8057389822 100644 (file)
@@ -29,6 +29,7 @@
  */
 
 #include "k5-int.h"
+#include "os-proto.h"
 #include "fake-addrinfo.h"
 #include <ctype.h>
 #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");