3 --- misc.cc.orig 2003-07-02 10:55:17.000000000 +0200
4 +++ misc.cc 2003-07-02 10:57:55.000000000 +0200
6 int doread(int handle,void * buf,ssize_t len, const char * name){
8 if ((i=read(handle,buf,len))!=len){
9 - fprintf(stderr,"Error reading %s (%i/%i): %s\n",name,i,len,strerror(errno));
10 + fprintf(stderr,"Error reading %s (%li/%li): %s\n",name,(long)i,(long)len,strerror(errno));
15 int dowrite(int handle, const void * buf, ssize_t len,const char *name,const char *name2){
17 if ((i=write(handle,buf,len))!=len){
18 - fprintf(stderr,"Error writing %s %s (%i/%i): %s\n",name,name2,i,len,strerror(errno));
19 + fprintf(stderr,"Error writing %s %s (%li/%li): %s\n",name,name2,(long)i,(long)len,strerror(errno));