freebsd-ports/cad/jspice3/files/patch-src+bin+help.c
Ion-Mihai Tetcu db4cc05a02 - Add options to allow user to select whether to depend on X or not
- Fix return status of build shell script to make 'make' happy
Added file(s):
- files/patch-src+bin+help.c
- files/patch-src+lib+plot+x11.c

PR:		ports/100652
Submitted by:	Stanislav Sedov <ssedov@mbsd.msk.ru> (maintainer)
2006-07-23 15:09:39 +00:00

27 lines
540 B
C

--- src/bin/help.c.orig Fri Jul 21 06:16:08 2006
+++ src/bin/help.c Fri Jul 21 06:18:15 2006
@@ -14,6 +14,7 @@
#include <pwd.h>
#endif
+static char *hcopydev;
#ifdef HAVE_X11
#include <X11/Intrinsic.h>
@@ -22,7 +23,6 @@
Display *Xdisplay;
static XtAppContext app_con;
static Widget toplevel;
-static char *hcopydev;
static String fallback_resources[] = {
@@ -188,7 +188,7 @@
{
if (!strcmp(n, kw_hcopydev)) {
strcpy(r, hcopydev);
- return (True);
+ return (1);
}
return (false);
}