The last fixed argument to varargs function and the variable arguments are not

allowed to have widable types according to the C standard. It worked
nevertheless on most platforms, but QNX choked on it.


git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@982 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
meep-eep
2003-06-18 23:32:44 +00:00
parent 79d461a0db
commit c894d8cc76
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -232,7 +232,7 @@ GetAllianceName (UNICODE *buf, RESPONSE_REF name_1)
} }
void void
construct_response (UNICODE *buf, RESPONSE_REF R, ...) construct_response (UNICODE *buf, int R /* promoted from RESPONSE_REF */, ...)
{ {
UNICODE *name; UNICODE *name;
va_list vlist; va_list vlist;
+2 -1
View File
@@ -60,7 +60,8 @@ extern void NPCPhrase_cb (int index, void (*cb) (void));
extern void GetAllianceName (UNICODE *buf, RESPONSE_REF name_1); extern void GetAllianceName (UNICODE *buf, RESPONSE_REF name_1);
extern void construct_response (UNICODE *buf, RESPONSE_REF R, ...); extern void construct_response (UNICODE *buf, int R /* promoted from
RESPONSE_REF */, ...);
extern LOCDATAPTR init_race (RESOURCE comm_id); extern LOCDATAPTR init_race (RESOURCE comm_id);