summaryrefslogtreecommitdiff
path: root/mail/elm/patches/patch-ak
blob: cb49c0558e47dbf3e28f707df2e8f7ca7b570215 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
$NetBSD: patch-ak,v 1.2 2006/07/17 17:41:00 wiz Exp $

--- hdrs/mcprtlib.h.orig	2005-08-18 12:49:24.000000000 +0000
+++ hdrs/mcprtlib.h
@@ -46,16 +46,8 @@ up-to-date.  Many thanks.
 08/10/90   1 nazgul	Initial version
 */
 
-/* taken from Xm/lib/VaSimple.h
-   currently no one defines MISSING_STDARG_H */
- 
-#ifdef	I_STDARG
 # include <stdarg.h>
 # define Va_start(a,b) va_start(a,b)
-#else
-# include <varargs.h>
-# define Va_start(a,b) va_start(a)
-#endif
 
 #define MCFree		0x0010			/* Reminder to MCPrintFree */
 #define MCCatalog	0x0100			/* Probably came from catalog */
@@ -145,7 +137,7 @@ typedef struct {
     for (i = 0; i < typeCnt; ++i) {					      \
 	switch (typeList[i].type) {					      \
 	  case MCShortType:						      \
-	    typeList[i].u.shortV = va_arg(vl, short);			      \
+	    typeList[i].u.shortV = va_arg(vl, int);			      \
 	    break;							      \
 	  case MCLongType:						      \
 	    typeList[i].u.longV = va_arg(vl, long);			      \
@@ -159,7 +151,7 @@ typedef struct {
 	    break;							      \
 #endif*/								      \
 	  case MCFloatType:						      \
-	    typeList[i].u.floatV = va_arg(vl, float);			      \
+	    typeList[i].u.floatV = va_arg(vl, double);			      \
 	    break;							      \
 	  case MCStringType:						      \
 	    typeList[i].u.charPV = va_arg(vl, char *);			      \