This is the mail archive of the cygwin-patches@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

w32api compiler warning fix.


ChangeLog

2001-11-08  Robert Collins  <rbtcollins@hotmail.com>

	* include/winnt.h: Define *_SID_AUTHORITY appropriately. (nested
	structures.)
	GetCurrentFiber: Create a prototype before the implementation;
	GetFiberData: Ditto.

Cheers, 
Rob

Index: include/winnt.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/winnt.h,v
retrieving revision 1.31
diff -u -p -r1.31 winnt.h
--- winnt.h	2001/11/01 19:42:56	1.31
+++ winnt.h	2001/11/07 13:04:19
@@ -267,12 +267,12 @@ typedef BYTE BOOLEAN,*PBOOLEAN;
 #define THREAD_ALL_ACCESS (STANDARD_RIGHTS_REQUIRED|SYNCHRONIZE|0x3FF)
 #define EXCEPTION_NONCONTINUABLE	1
 #define EXCEPTION_MAXIMUM_PARAMETERS 15
-#define SECURITY_NULL_SID_AUTHORITY	{0,0,0,0,0,0}
-#define SECURITY_WORLD_SID_AUTHORITY	{0,0,0,0,0,1}
-#define SECURITY_LOCAL_SID_AUTHORITY	{0,0,0,0,0,2}
-#define SECURITY_CREATOR_SID_AUTHORITY	{0,0,0,0,0,3}
-#define SECURITY_NON_UNIQUE_AUTHORITY	{0,0,0,0,0,4}
-#define SECURITY_NT_AUTHORITY	{0,0,0,0,0,5}
+#define SECURITY_NULL_SID_AUTHORITY	{{0,0,0,0,0,0}}
+#define SECURITY_WORLD_SID_AUTHORITY	{{0,0,0,0,0,1}}
+#define SECURITY_LOCAL_SID_AUTHORITY	{{0,0,0,0,0,2}}
+#define SECURITY_CREATOR_SID_AUTHORITY	{{0,0,0,0,0,3}}
+#define SECURITY_NON_UNIQUE_AUTHORITY	{{0,0,0,0,0,4}}
+#define SECURITY_NT_AUTHORITY	{{0,0,0,0,0,5}}
 #define SECURITY_NULL_RID	0
 #define SECURITY_WORLD_RID	0
 #define SECURITY_LOCAL_RID	0
@@ -2524,6 +2524,7 @@ typedef struct _REPARSE_POINT_INFORMATIO
 	WORD   ReparseDataLength;
 	WORD   UnparsedNameLength;
 } REPARSE_POINT_INFORMATION, *PREPARSE_POINT_INFORMATION;
+PVOID GetCurrentFiber(void);
 extern __inline__ PVOID GetCurrentFiber(void)
 {
     void* ret;
@@ -2534,7 +2535,7 @@ extern __inline__ PVOID GetCurrentFiber(
 		);
     return ret;
 }
-
+PVOID GetFiberData(void);
 extern __inline__ PVOID GetFiberData(void)
 {
     void* ret;



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]