Change the type of krb5_context to include the pointer
authorTheodore Tso <tytso@mit.edu>
Thu, 22 Dec 1994 17:25:05 +0000 (17:25 +0000)
committerTheodore Tso <tytso@mit.edu>
Thu, 22 Dec 1994 17:25:05 +0000 (17:25 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4746 dc483132-0cff-0310-8789-dd5450dbe970

src/include/krb5/func-proto.h
src/include/krb5/krb5.h
src/include/krb5/libos.h
src/include/krb5/los-proto.h
src/lib/krb5/krb/init_ctx.c
src/lib/krb5/os/init_os_ctx.c

index df6e30f094b36d430cd4a832f2e6339685dee77d..f5def17a50927b12341914eeb74a232c853f53e5 100644 (file)
@@ -28,9 +28,9 @@
 #define KRB5_FUNC_PROTO__
 
 krb5_error_code krb5_init_context
-       PROTOTYPE((krb5_context **));
-void krb5_free_context
        PROTOTYPE((krb5_context *));
+void krb5_free_context
+       PROTOTYPE((krb5_context));
 
 /* libkrb.spec */
 krb5_error_code krb5_kdc_rep_decrypt_proc
index 6d5dcb473dc283d85034d22ad6343ba69c5482cd..90c7ad10cf57493423f159c8f897aa6b16f1a7fc 100644 (file)
@@ -46,7 +46,7 @@
 typedef struct _krb5_context {
        krb5_magic      magic;
        void            *os_context;
-} krb5_context;
+} *krb5_context;
 
 /* Time set */
 typedef struct _krb5_ticket_times {
index fcdaed05f57770934452a4a49469716dbf21e909..d94879f037ff5d26dea6eb0b294a72ea20e24f5f 100644 (file)
@@ -30,7 +30,7 @@
 
 typedef struct _krb5_os_context {
        krb5_magic      magic;
-} krb5_os_context;
+} *krb5_os_context;
 
 /* lock mode flags */
 #define        KRB5_LOCKMODE_SHARED    0x0001
index 3cc09af9ccb516bdfe8eca0eb94e8331cd3bb08d..7f162d70304983f2c01fd3975b5037a60f167542 100644 (file)
@@ -30,9 +30,9 @@
 #include <stdio.h>
 
 krb5_error_code krb5_init_os_context
-       PROTOTYPE((krb5_context *));
+       PROTOTYPE((krb5_context));
 void krb5_free_os_context
-       PROTOTYPE((krb5_context *));
+       PROTOTYPE((krb5_context));
 
 /* libos.spec */
 krb5_error_code krb5_read_password
index 035e85f502af2a802d7fbdac86bdf21c922f9976..1d7758116468cac8be9b7e888d1b7e9068de3c30 100644 (file)
@@ -29,9 +29,9 @@
 
 krb5_error_code
 krb5_init_context(context)
-       krb5_context **context;
+       krb5_context *context;
 {
-       krb5_context *ctx;
+       krb5_context ctx;
        krb5_error_code retval;
 
        *context = 0;
@@ -56,7 +56,7 @@ cleanup:
 
 void
 krb5_free_context(ctx)
-       krb5_context    *ctx;
+       krb5_context    ctx;
 {
        krb5_os_free_context(ctx);
        ctx->magic = 0;
index 026c94a1a028ce6741f7b9c9f6191186a9baa069..6bcfc7a65d70f6ecd8055cb64617f328b356aca8 100644 (file)
@@ -30,9 +30,9 @@
 
 krb5_error_code
 krb5_os_init_context(ctx)
-       krb5_context *ctx;
+       krb5_context ctx;
 {
-       krb5_os_context *os_ctx;
+       krb5_os_context os_ctx;
        
        if (ctx->os_context)
                return 0;
@@ -50,9 +50,9 @@ krb5_os_init_context(ctx)
 
 void
 krb5_free_os_context(ctx)
-       krb5_context    *ctx;
+       krb5_context    ctx;
 {
-       krb5_os_context *os_ctx;
+       krb5_os_context os_ctx;
 
        os_ctx = ctx->os_context;