openbsd-ports/games/abuse/patches/patch-nfclient.c
brad 6796b1d8da - fix comment in patches about GCC, it's 2.95.x not 2.9.x
- remove RCS ID tags from patches
- convert patch-aa to a unified diff
- ${MV} -> mv in Makefile
1999-12-07 01:30:20 +00:00

23 lines
1.0 KiB
C

Make the method prototypes match the new superclass
--- abuse/src/nfclient.c.orig Fri Oct 29 00:26:21 1999
+++ abuse/src/nfclient.c Fri Oct 29 00:27:59 1999
@@ -32,7 +32,7 @@
virtual int open_failure();
virtual int unbuffered_read(void *buf, size_t count); // returns number of bytes read
int new_read(void *buf, size_t count); // returns number of bytes read
- virtual int unbuffered_write(void *buf, size_t count); // returns number of bytes written
+ virtual int unbuffered_write(const void *buf, size_t count); // returns number of bytes written
virtual int unbuffered_seek(long offset, int whence); // whence=SEEK_SET, SEEK_CUR, SEEK_END, ret=0=success
virtual int unbuffered_tell();
virtual int file_size();
@@ -143,7 +143,7 @@
else return 0;
}
-int nfs_file::unbuffered_write(void *buf, size_t count) // returns number of bytes written
+int nfs_file::unbuffered_write(const void *buf, size_t count) // returns number of bytes written
{
if (local)
return local->write(buf,count);