* protoize.c (safe_read, safe_write): Avoid the gcc extension of
using arithmetic on void pointers.
From-SVN: r30043
+Sat Oct 16 11:29:14 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
+
+ * protoize.c (safe_read, safe_write): Avoid the gcc extension of
+ using arithmetic on void pointers.
+
Sat Oct 16 02:48:22 1999 Jeffrey A Law (law@cygnus.com)
* haifa-sched.c (compute_block_forward_dependencies): Only check
}
if (nchars == 0)
break;
- ptr += nchars;
+ /* Arithmetic on void pointers is a gcc extention. */
+ ptr = (char *) ptr + nchars;
left -= nchars;
}
return len - left;
pname, shortpath (NULL, out_fname), xstrerror (errno_val));
return;
}
- ptr += written;
+ /* Arithmetic on void pointers is a gcc extention. */
+ ptr = (char *) ptr + written;
len -= written;
}
}