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)
This commit is contained in:
parent
c0a473ac40
commit
3a81a7dc36
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=121400
19
sysutils/ataidle/files/patch-types
Normal file
19
sysutils/ataidle/files/patch-types
Normal file
@ -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)
|
Loading…
Reference in New Issue
Block a user