svn rev #21918: trunk/src/ include/ util/support/
raeburn@MIT.EDU
raeburn at MIT.EDU
Mon Feb 9 11:35:03 EST 2009
http://src.mit.edu/fisheye/changelog/krb5/?cs=21918
Commit By: raeburn
Log Message:
More C++ compatibility: Don't use "typedef struct tag *tag"; rename
the tag and keep the same typedefname.
Changed Files:
U trunk/src/include/k5-int.h
U trunk/src/include/k5-ipc_stream.h
U trunk/src/util/support/ipc_stream.c
Modified: trunk/src/include/k5-int.h
===================================================================
--- trunk/src/include/k5-int.h 2009-02-09 16:28:29 UTC (rev 21917)
+++ trunk/src/include/k5-int.h 2009-02-09 16:35:01 UTC (rev 21918)
@@ -2123,11 +2123,11 @@
/*
* 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;
Modified: trunk/src/include/k5-ipc_stream.h
===================================================================
--- trunk/src/include/k5-ipc_stream.h 2009-02-09 16:28:29 UTC (rev 21917)
+++ trunk/src/include/k5-ipc_stream.h 2009-02-09 16:35:01 UTC (rev 21918)
@@ -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);
Modified: trunk/src/util/support/ipc_stream.c
===================================================================
--- trunk/src/util/support/ipc_stream.c 2009-02-09 16:28:29 UTC (rev 21917)
+++ trunk/src/util/support/ipc_stream.c 2009-02-09 16:35:01 UTC (rev 21918)
@@ -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
More information about the cvs-krb5
mailing list