diff options
author | Ian C <ianc@noddybox.co.uk> | 2007-02-13 00:34:42 +0000 |
---|---|---|
committer | Ian C <ianc@noddybox.co.uk> | 2007-02-13 00:34:42 +0000 |
commit | d640ce1c08345c0b96e2fb89893a238b1498ec66 (patch) | |
tree | 778eb1260306e7533fc87c32c2ce49b6cabd2cce /xed.c | |
parent | a71f3dae3de1d5fe3a50009df8ebb105e9ec81ff (diff) |
Fixed build for non-GCC (removed void pointer arithmetic)
Diffstat (limited to 'xed.c')
-rw-r--r-- | xed.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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; |