aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormi <mi@FreeBSD.org>2004-11-12 02:02:31 +0800
committermi <mi@FreeBSD.org>2004-11-12 02:02:31 +0800
commitb8a33c3de1e01a53f266eaba7f2248f41d1f94f1 (patch)
tree2e6d8778e578ba32698b8bd1154aaf98c51f603e
parent3f4304fa46541e3bad7f50ec3be35f3ebf9839ef (diff)
downloadfreebsd-ports-gnome-b8a33c3de1e01a53f266eaba7f2248f41d1f94f1.tar.gz
freebsd-ports-gnome-b8a33c3de1e01a53f266eaba7f2248f41d1f94f1.tar.zst
freebsd-ports-gnome-b8a33c3de1e01a53f266eaba7f2248f41d1f94f1.zip
Add a patch to fix a bogus int* to long* cast, which was silently
breaking 64-bit machines. Tested on amd64. Approved by: maintainer timeout (3 days)
-rw-r--r--sysutils/ataidle/files/patch-types19
1 files changed, 19 insertions, 0 deletions
diff --git a/sysutils/ataidle/files/patch-types b/sysutils/ataidle/files/patch-types
new file mode 100644
index 000000000000..aa6f6da5aff9
--- /dev/null
+++ b/sysutils/ataidle/files/patch-types
@@ -0,0 +1,19 @@
+--- main.c Tue Jul 20 19:02:11 2004
++++ main.c Mon Nov 8 19:53:28 2004
+@@ -67,7 +67,7 @@
+ {
+ int rc = 0;
+- int ch, chan, dev = -1;
++ int ch, dev = -1;
+ struct ATA *ata = (struct ATA*) malloc(sizeof(struct ATA));
+- long opt_val;
++ long opt_val, chan;
+ uint32_t maxchan = 0;
+ bool needchandev;
+@@ -85,5 +85,5 @@
+
+ if(!rc && needchandev)
+- rc = ata_strtolong(argv[argc-2], (long*) &chan);
++ rc = ata_strtolong(argv[argc-2], &chan);
+
+ if(!rc)