ports/58098: net/ttt: fix build on 5.x

Michael Edenfield kutulu at kutulu.org
Thu Oct 16 00:30:24 UTC 2003


>Number:         58098
>Category:       ports
>Synopsis:       net/ttt: fix build on 5.x
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Oct 15 17:30:20 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     Michael Edenfield
>Release:        FreeBSD 5.1-CURRENT i386
>Organization:
>Environment:
System: FreeBSD wombat.localnet 5.1-CURRENT FreeBSD 5.1-CURRENT #7: Sun Aug 24 21:35:57 EDT 2003 root at wombat.localnet:/usr/obj/usr/src/sys/ATHLON i386

>Description:
>How-To-Repeat:
>Fix:


--- patch.ttt begins here ---
diff -urN ttt.orig/files/patch-common.c ttt/files/patch-common.c
--- ttt.orig/files/patch-common.c	Wed Dec 31 19:00:00 1969
+++ ttt/files/patch-common.c	Wed Oct 15 20:20:12 2003
@@ -0,0 +1,26 @@
+--- common.c.orig	Wed Oct 15 19:40:27 2003
++++ common.c	Wed Oct 15 19:41:07 2003
+@@ -44,20 +44,17 @@
+ 
+ #include <stdio.h>
+ #include <errno.h>
+-#include <varargs.h>
++#include <stdarg.h>
+ 
+-void fatal_error(va_alist)
+-    va_dcl
++void fatal_error(const char *fmt, ...)
+ {
+     va_list ap;
+-    char *fmt;
+ 
+     if (errno != 0)
+ 	perror("fatal_error");
+     else
+ 	fprintf(stderr, "fatal_error: ");
+-    va_start(ap);
+-    fmt = va_arg(ap, char *);
++    va_start(ap, fmt);
+     vfprintf(stderr, fmt, ap);
+     va_end(ap);
+     fprintf(stderr, "\n");
diff -urN ttt.orig/files/patch-ttt.h ttt/files/patch-ttt.h
--- ttt.orig/files/patch-ttt.h	Wed Dec 31 19:00:00 1969
+++ ttt/files/patch-ttt.h	Wed Oct 15 19:41:34 2003
@@ -0,0 +1,11 @@
+--- ttt.h.orig	Wed Oct 15 19:41:11 2003
++++ ttt.h	Wed Oct 15 19:41:23 2003
+@@ -78,7 +78,7 @@
+ extern int ttt_yscale;		/* scale of y axis */
+ extern struct timeval ttt_dumptime;
+ 
+-extern void fatal_error(/*const char *fmt, ...*/);
++extern void fatal_error(const char *fmt, ...);
+ 
+ /* function prototypes */
+ 
--- patch.ttt ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list