22 lines
926 B
Text
22 lines
926 B
Text
$NetBSD: patch-aa,v 1.7 2003/07/02 09:04:37 martin Exp $
|
|
|
|
--- misc.cc.orig 2003-07-02 10:55:17.000000000 +0200
|
|
+++ misc.cc 2003-07-02 10:57:55.000000000 +0200
|
|
@@ -8,7 +8,7 @@
|
|
int doread(int handle,void * buf,ssize_t len, const char * name){
|
|
ssize_t i;
|
|
if ((i=read(handle,buf,len))!=len){
|
|
- fprintf(stderr,"Error reading %s (%i/%i): %s\n",name,i,len,strerror(errno));
|
|
+ fprintf(stderr,"Error reading %s (%li/%li): %s\n",name,(long)i,(long)len,strerror(errno));
|
|
return -1;
|
|
}
|
|
return 0;
|
|
@@ -16,7 +16,7 @@
|
|
int dowrite(int handle, const void * buf, ssize_t len,const char *name,const char *name2){
|
|
ssize_t i;
|
|
if ((i=write(handle,buf,len))!=len){
|
|
- fprintf(stderr,"Error writing %s %s (%i/%i): %s\n",name,name2,i,len,strerror(errno));
|
|
+ fprintf(stderr,"Error writing %s %s (%li/%li): %s\n",name,name2,(long)i,(long)len,strerror(errno));
|
|
return -1;
|
|
}
|
|
else return 0;
|