9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] abaco in linux
@ 2014-10-25 17:44 trebol
  0 siblings, 0 replies; only message in thread
From: trebol @ 2014-10-25 17:44 UTC (permalink / raw)
  To: 9fans

In linux gcc cries:
io.c:23:7: error: assignment to expression with array type
  arg2 = va_arg(*arg, va_list);

I have seen other errors like that in the web, and solutions involving
va_copy().  I don't know... I'm just learning but the source seems
correct, arg2 is a va_list, and va_arg(*arg, va_list) expand to a va_list,
doesn't it?.  Anyway:


--- abaco/webfs/io.c	2008-02-17 19:27:12.000000000 +0000
+++ abaco_patched/webfs/io.c	2014-10-25 18:03:11.990925835 +0100
@@ -16,11 +16,11 @@
 {
 	int fd;
 	char *fmt;
-	va_list arg2;
+	void *arg2;
 
 	fd = va_arg(*arg, int);
 	fmt = va_arg(*arg, char*);
-	arg2 = va_arg(*arg, va_list);
+	arg2 = va_arg(*arg, void*);
 	return vfprint(fd, fmt, arg2);
 }


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-10-25 17:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-25 17:44 [9fans] abaco in linux trebol

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).