From c894d8cc769c6148dc5a42d0efeeaa3617f40de0 Mon Sep 17 00:00:00 2001 From: meep-eep Date: Wed, 18 Jun 2003 23:32:44 +0000 Subject: [PATCH] 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 --- sc2/src/sc2code/commglue.c | 2 +- sc2/src/sc2code/commglue.h | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/sc2/src/sc2code/commglue.c b/sc2/src/sc2code/commglue.c index b6ee9d8b8..5000c4c84 100644 --- a/sc2/src/sc2code/commglue.c +++ b/sc2/src/sc2code/commglue.c @@ -232,7 +232,7 @@ GetAllianceName (UNICODE *buf, RESPONSE_REF name_1) } void -construct_response (UNICODE *buf, RESPONSE_REF R, ...) +construct_response (UNICODE *buf, int R /* promoted from RESPONSE_REF */, ...) { UNICODE *name; va_list vlist; diff --git a/sc2/src/sc2code/commglue.h b/sc2/src/sc2code/commglue.h index 429951ac2..1f42ea048 100644 --- a/sc2/src/sc2code/commglue.h +++ b/sc2/src/sc2code/commglue.h @@ -60,7 +60,8 @@ extern void NPCPhrase_cb (int index, void (*cb) (void)); 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);