mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-08-03 17:59:07 -04:00
25 lines
695 B
Plaintext
25 lines
695 B
Plaintext
$NetBSD: patch-aa,v 1.2 2015/12/29 23:34:49 dholland Exp $
|
|
|
|
Avoid illegal lvalue casts.
|
|
|
|
--- src/iostream.c.orig 1998-11-25 10:06:10.000000000 +0200
|
|
+++ src/iostream.c
|
|
@@ -233,7 +233,7 @@ js_iostream_read (JSIOStream *stream, vo
|
|
|
|
stream->bufpos += got;
|
|
size -= got;
|
|
- (unsigned char *) ptr += got;
|
|
+ ptr = (unsigned char *) ptr + got;
|
|
total += got;
|
|
}
|
|
else
|
|
@@ -290,7 +290,7 @@ js_iostream_write (JSIOStream *stream, v
|
|
stream->data_in_buf += space;
|
|
total += space;
|
|
size -= space;
|
|
- (unsigned char *) ptr += space;
|
|
+ ptr = (unsigned char *) ptr + space;
|
|
|
|
/* Now the buffer contains buffered write data. */
|
|
stream->writep = 1;
|