aboutsummaryrefslogtreecommitdiffstats
path: root/cad/spice/files
diff options
context:
space:
mode:
authorjdp <jdp@FreeBSD.org>2004-10-31 07:23:22 +0800
committerjdp <jdp@FreeBSD.org>2004-10-31 07:23:22 +0800
commitef2a9c91b51a34a0a70735a9d077343e0311b1c8 (patch)
tree9e03b183a3cfe63f67ac1fe74c892a34609f265a /cad/spice/files
parent079614b14899dcf0d0c4c730877b1a72e626ef78 (diff)
downloadfreebsd-ports-gnome-ef2a9c91b51a34a0a70735a9d077343e0311b1c8.tar.gz
freebsd-ports-gnome-ef2a9c91b51a34a0a70735a9d077343e0311b1c8.tar.zst
freebsd-ports-gnome-ef2a9c91b51a34a0a70735a9d077343e0311b1c8.zip
The spice maintainers changed the syntax of the "alter" command
since the documentation was written. Fix the port so that it emits an error message rather than getting a segmentation violation if the old syntax is used.
Diffstat (limited to 'cad/spice/files')
-rw-r--r--cad/spice/files/patch-src_lib_fte_device_c13
1 files changed, 11 insertions, 2 deletions
diff --git a/cad/spice/files/patch-src_lib_fte_device_c b/cad/spice/files/patch-src_lib_fte_device_c
index 26c4e60b0998..85e100d92633 100644
--- a/cad/spice/files/patch-src_lib_fte_device_c
+++ b/cad/spice/files/patch-src_lib_fte_device_c
@@ -1,5 +1,14 @@
---- src/lib/fte/device.c.orig Thu Jul 29 21:09:59 1993
-+++ src/lib/fte/device.c Thu Jul 17 00:47:50 2003
+--- src/lib/fte/device.c.orig Thu Jul 29 19:09:59 1993
++++ src/lib/fte/device.c Thu Sep 30 13:16:51 2004
+@@ -619,7 +619,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 +661,9 @@
}