* appdefault.c, get_in_tkt.c: made conf_yes and conf_no const to
authorTom Yu <tlyu@mit.edu>
Wed, 26 Jun 2002 00:12:13 +0000 (00:12 +0000)
committerTom Yu <tlyu@mit.edu>
Wed, 26 Jun 2002 00:12:13 +0000 (00:12 +0000)
improve load time on Mach-O

* init_ctx: fixed Mac OS macros

[pullups from 1-2-2-branch]

* rd_safe.c, rd_priv.c, rd_cred.c, preauth.c, mk_safe.c,
mk_cred.c, appdefault.c: use "" includes for krb5.h, k5-int.h and
syslog.h
[pullup from 1-2-2-branch]

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14583 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/krb/ChangeLog
src/lib/krb5/krb/appdefault.c
src/lib/krb5/krb/get_in_tkt.c
src/lib/krb5/krb/init_ctx.c
src/lib/krb5/krb/mk_cred.c
src/lib/krb5/krb/mk_safe.c
src/lib/krb5/krb/rd_cred.c
src/lib/krb5/krb/rd_priv.c
src/lib/krb5/krb/rd_safe.c

index 8a188d635dc473ada25c190cb86eaa77127d33b4..ba3eda6908d3dcfcc5d11ee109b8e90a33d25571 100644 (file)
@@ -1,3 +1,19 @@
+2002-06-25  Alexandra Ellwood <lxs@mit.edu>
+
+       * appdefault.c, get_in_tkt.c: made conf_yes and conf_no const to 
+       improve load time on Mach-O
+
+       * init_ctx: fixed Mac OS macros
+
+       [pullups from 1-2-2-branch]
+
+2001-06-25  Miro Jurisic  <meeroh@mit.edu>
+
+       * rd_safe.c, rd_priv.c, rd_cred.c, preauth.c, mk_safe.c,
+       mk_cred.c, appdefault.c: use "" includes for krb5.h, k5-int.h and
+       syslog.h
+       [pullup from 1-2-2-branch]
+
 2002-06-18  Ken Raeburn  <raeburn@mit.edu>
 
        * sendauth.c (ECONNABORTED): Don't define here now that it's
index e6b732d6f4473687408d78fc670d3b22cfc08f8e..5cc73cc915c6e4019b66b110f6382085f939d1c2 100644 (file)
@@ -5,17 +5,17 @@
 
 #include <stdio.h>
 #include <string.h>
-#include <k5-int.h>
+#include "k5-int.h"
 
 
 
  /*xxx Duplicating this is annoying; try to work on a better way.*/
-static char *conf_yes[] = {
+static const char *conf_yes[] = {
        "y", "yes", "true", "t", "1", "on",
        0,
 };
 
-static char *conf_no[] = {
+static const char *conf_no[] = {
        "n", "no", "false", "nil", "0", "off",
        0,
 };
index 7d8ff93cb03ed668499364475dc66b7da8c4f426..8a08ed72a0a77b6a07a06c3eec676d1f78f624ca 100644 (file)
@@ -600,12 +600,12 @@ cleanup:
    is yet. */
 
 /* XXX Duplicating this is annoying; try to work on a better way.*/
-static char *conf_yes[] = {
+static const char *conf_yes[] = {
     "y", "yes", "true", "t", "1", "on",
     0,
 };
 
-static char *conf_no[] = {
+static const char *conf_no[] = {
     "n", "no", "false", "nil", "0", "off",
     0,
 };
index c2477c5e22dbb2bdd0fbcf1eeabef8d3234c3ea1..c74fc9e01c29ced6d65c986b14e9db0987012936 100644 (file)
@@ -193,7 +193,7 @@ init_common (context, secure)
                            "kdc_default_options", 0,
                            KDC_OPT_RENEWABLE_OK, &tmp);
        ctx->kdc_default_options = tmp;
-#ifdef macintosh
+#if TARGET_OS_MAC
 #define DEFAULT_KDC_TIMESYNC 1
 #else
 #define DEFAULT_KDC_TIMESYNC 0
@@ -211,7 +211,7 @@ init_common (context, secure)
         * Note: DCE 1.0.3a only supports a cache type of 1
         *      DCE 1.1 supports a cache type of 2.
         */
-#ifdef macintosh
+#if TARGET_OS_MAC
 #define DEFAULT_CCACHE_TYPE 4
 #else
 #define DEFAULT_CCACHE_TYPE 3
index 619881659915ce67f08ce8620435198bd64ef942..22713917a3b566f4438a9a375ca956a10886f43c 100644 (file)
@@ -7,7 +7,7 @@
  *    structures.
  *
  */
-#include <k5-int.h>
+#include "k5-int.h"
 #include "cleanup.h"
 #include "auth_con.h"
 
index d34f88668a6bab422429a144ba082977bdaf224e..59fc388fb4082de810159a56d26ce01e7393672d 100644 (file)
@@ -27,7 +27,7 @@
  * krb5_mk_safe()
  */
 
-#include <k5-int.h>
+#include "k5-int.h"
 #include "cleanup.h"
 #include "auth_con.h"
 
index f8b92a9f6caae58d8a13059c21f4d9cb72e71d3b..d6fc23742662ca7dac4f09771af54751c5a81e06 100644 (file)
@@ -1,4 +1,4 @@
-#include <k5-int.h>
+#include "k5-int.h"
 #include "cleanup.h"
 #include "auth_con.h"
 
index f4adea75f2023192caa9ded4501f051a9ca7ce2e..d223782ccabe1a690a6b425c6ca7434ea52b0e65 100644 (file)
@@ -27,7 +27,7 @@
  * krb5_rd_priv()
  */
 
-#include <k5-int.h>
+#include "k5-int.h"
 #include "cleanup.h"
 #include "auth_con.h"
 
index 200a338cb342704a38cb15cf3f96b18bc4f2fdba..61488ea82fe8d32c6da3c7ce04ecb152beff16f6 100644 (file)
@@ -27,7 +27,7 @@
  * krb5_rd_safe()
  */
 
-#include <k5-int.h>
+#include "k5-int.h"
 #include "cleanup.h"
 #include "auth_con.h"