summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@mit.edu>2009-02-09 16:35:01 +0000
committerKen Raeburn <raeburn@mit.edu>2009-02-09 16:35:01 +0000
commit6d39a4291786e8b79c2d2bae39dc0b2c84cfb67f (patch)
tree0afb9b5664e18e471d24e02b19f2c6671bfce21f /src
parent9a264326001468b4429baeda7ffdc8e3e7bd560d (diff)
downloadkrb5-6d39a4291786e8b79c2d2bae39dc0b2c84cfb67f.tar.gz
krb5-6d39a4291786e8b79c2d2bae39dc0b2c84cfb67f.tar.xz
krb5-6d39a4291786e8b79c2d2bae39dc0b2c84cfb67f.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/include/k5-int.h4
-rw-r--r--src/include/k5-ipc_stream.h4
-rw-r--r--src/util/support/ipc_stream.c6
3 files changed, 7 insertions, 7 deletions
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