]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Fix -DDEBUG compilation errors
authorHenry B. Hotz <hotz@jpl.nasa.gov>
Mon, 4 Jun 2012 14:56:38 +0000 (10:56 -0400)
committerTom Yu <tlyu@mit.edu>
Mon, 23 Jul 2012 20:04:12 +0000 (16:04 -0400)
(cherry picked from commit 7c3ecf5c77e33f6d04d6226b041071c6ce23b062)

ticket: 7150
version_fixed: 1.10.3
status: resolved

src/appl/simple/server/sim_server.c
src/lib/gssapi/spnego/gssapiP_spnego.h
src/lib/kadm5/srv/server_acl.c
src/lib/kadm5/srv/server_acl.h
src/plugins/kdb/db2/libdb2/hash/hash_debug.c

index 0f8d1065fdb4ef56ca0cfb62ba21a3037d1ec357..19d8f5f1801cd68f47a6abfd8a4cc3865a972cd9 100644 (file)
@@ -41,6 +41,7 @@
 #include <sys/socket.h>
 #include <netinet/in.h>
 #include <netdb.h>
+#include <arpa/inet.h>
 
 #include "com_err.h"
 
index 3fe9fca74f0752f6983b526895928dd0c932599c..084716d050907ddc28fd0199bfd6449470487a7a 100644 (file)
@@ -118,6 +118,7 @@ extern const gss_OID_desc * const gss_mech_spnego;
 extern const gss_OID_set_desc * const gss_mech_set_spnego;
 
 #ifdef DEBUG
+#include <syslog.h>
 #define        dsyslog(a) syslog(LOG_DEBUG, a)
 #else
 #define        dsyslog(a)
index 17d4992700c98b0de3a081eea14a4316a5fe9e2b..7094f49a8cd04be668ed6ec25f4db4c3d0b044d1 100644 (file)
@@ -568,7 +568,7 @@ kadm5int_acl_match_data(e1, e2, targetflag, ws)
         if (ws && !targetflag) {
             if (ws->nwild >= 9) {
                 DPRINT(DEBUG_ACL, acl_debug_level,
-                       ("Too many wildcards in ACL entry %s\n", entry->ae_name));
+                       ("Too many wildcards in ACL entry.\n"));
             }
             else
                 ws->backref[ws->nwild++] = e2;
@@ -579,7 +579,7 @@ kadm5int_acl_match_data(e1, e2, targetflag, ws)
         int     n = e1->data[1] - '1';
         if (n >= ws->nwild) {
             DPRINT(DEBUG_ACL, acl_debug_level,
-                   ("Too many backrefs in ACL entry %s\n", entry->ae_name));
+                   ("Too many backrefs in ACL entry.\n"));
         }
         else if ((ws->backref[n]->length == e2->length) &&
                  (!strncmp(ws->backref[n]->data, e2->data, e2->length)))
index 1ca4dfa1d7a09132d695fa0565cb8d31d46b6622..d492ea9c880d0ce9941b36ee8b9cc4814d6e88ac 100644 (file)
@@ -40,7 +40,7 @@
 #define DEBUG_CALLS     128
 #define DEBUG_NOSLAVES  256
 #ifdef  DEBUG
-#define DPRINT(l1, cl, al)      if ((cl & l1) != 0) xprintf al
+#define DPRINT(l1, cl, al)      if ((cl & l1) != 0) printf al
 #else   /* DEBUG */
 #define DPRINT(l1, cl, al)
 #endif  /* DEBUG */
index 69229fc8df3873173d3ca6748930e90af087b3a5..43f537f53633ddc84c7d90761a01e2ba15b1c13f 100644 (file)
@@ -51,6 +51,7 @@ static char sccsid[] = "@(#)hash_debug.c      8.4 (Berkeley) 11/7/95";
  *     __dump_bucket
  */
 #include <stdio.h>
+#include <string.h>
 
 #include "db-int.h"
 #include "hash.h"