1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-19 19:59:43 +00:00
freebsd-ports/cad/spice/files/patch-src_lib_fte_device_c
Ryan Steinmetz d944917e18 Fix build under clang [1]
Add LICENSE
Fix usage of PORTDOCS in plist, no bump required

PR:		ports/159173
Submitted by:	Pedro Giffuni <giffunip@tutopia.com> [1]
Approved by:	tabthorpe (mentor)
2011-07-28 21:58:16 +00:00

40 lines
1015 B
Plaintext

--- src/lib/fte/device.c.orig 1993-07-30 02:09:59.000000000 +0000
+++ src/lib/fte/device.c 2011-07-26 23:17:58.000000000 +0000
@@ -14,6 +14,8 @@
#include "ftedefs.h"
#include "dgen.h"
+void com_alter_common(wordlist *wl, int do_model);
+
static wordlist *devexpand();
/*
@@ -576,6 +578,7 @@
com_alter_common(wl, 1);
}
+void
com_alter_common(wl, do_model)
wordlist *wl;
int do_model;
@@ -619,7 +622,7 @@
n2 = names;
}
- if (!n2 || !eq(n2->pn_op->op_name, "=")) {
+ if (!n2 || !n2->pn_op || !eq(n2->pn_op->op_name, "=")) {
fprintf(cp_err, "alter: don't understand \"%s\"\n", names->pn_name);
fprintf(cp_err, "usage: alter dev param = expression\n");
fprintf(cp_err, " or alter @dev[param] = expression\n");
@@ -661,7 +664,9 @@
}
dv = ft_evaluate(n2->pn_right);
- free_pnode(names);
+ /* prevent names from getting freed twice
+ Guenther Roehrich 22-Jan-99 */
+ /* free_pnode(names); */
if (!dv)
return;
if (dv->v_length < 1) {