From: Theodore Tso Date: Thu, 22 Dec 1994 17:25:05 +0000 (+0000) Subject: Change the type of krb5_context to include the pointer X-Git-Tag: krb5-1.0-beta5~907 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e7d2751fb1ca16f2045ce5f0bafb55066d1bbd65;p=krb5.git Change the type of krb5_context to include the pointer git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4746 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/include/krb5/func-proto.h b/src/include/krb5/func-proto.h index df6e30f09..f5def17a5 100644 --- a/src/include/krb5/func-proto.h +++ b/src/include/krb5/func-proto.h @@ -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 diff --git a/src/include/krb5/krb5.h b/src/include/krb5/krb5.h index 6d5dcb473..90c7ad10c 100644 --- a/src/include/krb5/krb5.h +++ b/src/include/krb5/krb5.h @@ -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 { diff --git a/src/include/krb5/libos.h b/src/include/krb5/libos.h index fcdaed05f..d94879f03 100644 --- a/src/include/krb5/libos.h +++ b/src/include/krb5/libos.h @@ -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 diff --git a/src/include/krb5/los-proto.h b/src/include/krb5/los-proto.h index 3cc09af9c..7f162d703 100644 --- a/src/include/krb5/los-proto.h +++ b/src/include/krb5/los-proto.h @@ -30,9 +30,9 @@ #include 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 diff --git a/src/lib/krb5/krb/init_ctx.c b/src/lib/krb5/krb/init_ctx.c index 035e85f50..1d7758116 100644 --- a/src/lib/krb5/krb/init_ctx.c +++ b/src/lib/krb5/krb/init_ctx.c @@ -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; diff --git a/src/lib/krb5/os/init_os_ctx.c b/src/lib/krb5/os/init_os_ctx.c index 026c94a1a..6bcfc7a65 100644 --- a/src/lib/krb5/os/init_os_ctx.c +++ b/src/lib/krb5/os/init_os_ctx.c @@ -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;