From d640ce1c08345c0b96e2fb89893a238b1498ec66 Mon Sep 17 00:00:00 2001 From: Ian C Date: Tue, 13 Feb 2007 00:34:42 +0000 Subject: Fixed build for non-GCC (removed void pointer arithmetic) --- xed.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'xed.c') diff --git a/xed.c b/xed.c index 59d178a..883820a 100644 --- a/xed.c +++ b/xed.c @@ -36,7 +36,7 @@ static const char id[]="$Id$"; #include "xedkeys.h" -#define VERSION "V2.1" +#define VERSION "V2.2" #define USAGE "[-x] [-i] [-r] [-c] [-R] file" #define NONE 0 @@ -101,8 +101,8 @@ void SearchString(void); void DoSearchString(void); void SearchHex(void); void DoSearchHex(void); -int Read(int fd, void *buff, int no); -int Write(int fd, void *buff, int no); +int Read(int fd, uchar *buff, int no); +int Write(int fd, const uchar *buff, int no); void OpenFile(void); void SaveFile(void); int CalcHex(int x[]); @@ -1074,7 +1074,7 @@ void DoSearchHex(void) /* Provide a skin to read(2) and write(2) */ -int Read(int fd, void *buff, int no) +int Read(int fd, uchar *buff, int no) { int tot,rd; @@ -1100,7 +1100,7 @@ int Read(int fd, void *buff, int no) } -int Write(int fd, void *buff, int no) +int Write(int fd, const uchar *buff, int no) { int tot,wr; -- cgit v1.2.3