diff options
-rw-r--r-- | xed.1 | 7 | ||||
-rw-r--r-- | xed.c | 10 |
2 files changed, 9 insertions, 8 deletions
@@ -175,12 +175,13 @@ The diagnostics produced by .B xed are intended to be self-explanatory. .SH NOTES -Version 2.1 of +Version 2.2 of .B xed -includes these additions and fixes over 2.0 : +includes these additions and fixes over 2.1 : .TP o -Added missing include for unistd.h -- FreeBSD didn't mind, cygwin did. +Removed usage of GCC-only extension (void pointer arithmetic) that crept in by +mistake. .SH BUGS .TP o @@ -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; |