This commit is contained in:
naddy 2002-09-28 20:25:23 +00:00
parent b0f39f243d
commit f9b12d6ba0

View File

@ -1,7 +1,13 @@
$OpenBSD: patch-misc_cc,v 1.1 2002/09/27 21:57:22 naddy Exp $
--- misc.cc.orig Fri Sep 27 23:58:04 2002
+++ misc.cc Fri Sep 27 23:58:20 2002
@@ -13,7 +13,7 @@ int doread(int handle,void * buf,ssize_t
$OpenBSD: patch-misc_cc,v 1.2 2002/09/28 20:25:23 naddy Exp $
--- misc.cc.orig Fri Jun 11 02:25:30 1999
+++ misc.cc Sat Sep 28 21:31:03 2002
@@ -8,20 +8,20 @@
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 (%ld/%ld): %s\n",name,(long)i,(long)len,strerror(errno));
return -1;
}
return 0;
}
@ -9,8 +15,9 @@ $OpenBSD: patch-misc_cc,v 1.1 2002/09/27 21:57:22 naddy Exp $
+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));
@@ -21,7 +21,7 @@ int dowrite(int handle, const void * buf
- fprintf(stderr,"Error writing %s %s (%i/%i): %s\n",name,name2,i,len,strerror(errno));
+ fprintf(stderr,"Error writing %s %s (%ld/%ld): %s\n",name,name2,(long)i,(long)len,strerror(errno));
return -1;
}
else return 0;
}