From: Ken Raeburn Date: Mon, 9 Feb 2009 16:35:01 +0000 (+0000) Subject: More C++ compatibility: Don't use "typedef struct tag *tag"; rename X-Git-Tag: krb5-1.8-alpha1~686 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6d39a4291786e8b79c2d2bae39dc0b2c84cfb67f;p=krb5.git More C++ compatibility: Don't use "typedef struct tag *tag"; rename the tag and keep the same typedefname. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@21918 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/include/k5-int.h b/src/include/k5-int.h index 11d19e469..1cc3c8061 100644 --- a/src/include/k5-int.h +++ b/src/include/k5-int.h @@ -2123,11 +2123,11 @@ struct _krb5_ccache { /* * Per-type ccache cursor. */ -struct krb5_cc_ptcursor { +struct krb5_cc_ptcursor_s { const struct _krb5_cc_ops *ops; krb5_pointer data; }; -typedef struct krb5_cc_ptcursor *krb5_cc_ptcursor; +typedef struct krb5_cc_ptcursor_s *krb5_cc_ptcursor; struct _krb5_cc_ops { krb5_magic magic; diff --git a/src/include/k5-ipc_stream.h b/src/include/k5-ipc_stream.h index edbf5a4ad..71bbaa1e7 100644 --- a/src/include/k5-ipc_stream.h +++ b/src/include/k5-ipc_stream.h @@ -29,8 +29,8 @@ #include "k5-platform.h" -struct k5_ipc_stream; -typedef struct k5_ipc_stream *k5_ipc_stream; +struct k5_ipc_stream_s; +typedef struct k5_ipc_stream_s *k5_ipc_stream; int32_t k5_ipc_stream_new (k5_ipc_stream *out_stream); diff --git a/src/util/support/ipc_stream.c b/src/util/support/ipc_stream.c index 4037fe87d..28c6614f9 100644 --- a/src/util/support/ipc_stream.c +++ b/src/util/support/ipc_stream.c @@ -1,7 +1,7 @@ /* * $Header$ * - * Copyright 2006, 2007 Massachusetts Institute of Technology. + * Copyright 2006, 2007, 2009 Massachusetts Institute of Technology. * All Rights Reserved. * * Export of this software from the United States of America may @@ -37,13 +37,13 @@ /* Add debugging later */ #define k5_check_error(x) (x) -struct k5_ipc_stream { +struct k5_ipc_stream_s { char *data; uint64_t size; uint64_t max_size; }; -const struct k5_ipc_stream k5_ipc_stream_initializer = { NULL, 0, 0 }; +const struct k5_ipc_stream_s k5_ipc_stream_initializer = { NULL, 0, 0 }; #define K5_IPC_STREAM_SIZE_INCREMENT 128