Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 Apr 2005 12:48:34 +0200 (CEST)
From:      Andre Albsmeier <Andre.Albsmeier@siemens.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/80473: [PATCH] unbreak compilation of sysutils/xloadface on 5.4-STABLE
Message-ID:  <200504301048.j3UAmYk3055290@curry.mchp.siemens.de>
Resent-Message-ID: <200504301050.j3UAo2kb001760@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         80473
>Category:       ports
>Synopsis:       [PATCH] unbreak compilation of sysutils/xloadface on 5.4-STABLE
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Sat Apr 30 10:50:01 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Andre Albsmeier
>Release:        FreeBSD 5.4-STABLE i386
>Organization:
>Environment:

FreeBSD 5.4-STABLE i386

>Description:

sysutils/xloadface is marked as BROKEN for ${OSVERSION} >= 500113

>How-To-Repeat:

Try to build it :-)

>Fix:

------------------------ start of patch ------------------------
--- widgets.c.orig	Fri Apr 29 16:37:58 2005
+++ widgets.c	Fri Apr 29 16:39:09 2005
@@ -18,7 +18,7 @@
 #include "LoadFace.h"
 #include "ArrangeBox.h"
 #include "MachineInfo.h"
-#include <varargs.h>
+#include <stdarg.h>
 #include "version.h"
 #include <math.h>
 #include <X11/Xresource.h>
@@ -49,7 +49,7 @@
 
 static void exitDisplay(),popdown(),showHelp(),popdownHelp();
 
-Widget mkWidget();
+Widget mkWidget(char* name, ...);
 
 static XrmOptionDescRec optionTable[] = {
 {"-interval",	"*interval",		XrmoptionSepArg,(caddr_t)NULL},
@@ -571,11 +571,9 @@
  *                 resource-name, resource, ... , NULL);
  */
 Widget
-mkWidget(va_alist)
-va_dcl
+mkWidget(char* name, ...)
 {
 	va_list arg;
-	char *name;
 	WidgetClass class;
 	Widget parent;
 	String argname;
@@ -583,8 +581,7 @@
 	int n = 0;
 	Arg args[20];
 	
-	va_start(arg);
-	name   = va_arg(arg,char*);
+	va_start(arg, name);
 	class  = va_arg(arg,WidgetClass);
 	parent = va_arg(arg,Widget);
 
------------------------ end of patch ------------------------
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200504301048.j3UAmYk3055290>