$OpenBSD: patch-misc_cc,v 1.4 2010/05/09 17:32:53 robert Exp $
--- misc.cc.orig	Fri Jan 10 03:52:38 2003
+++ misc.cc	Sun May  9 19:28:24 2010
@@ -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 (%ld/%ld): %s\n",name,(long)i,(long)len,strerror(errno));
       return -1;
    }
    return 0;
@@ -16,7 +16,7 @@ int doread(int handle,void * buf,ssize_t len, const ch
 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 (%ld/%ld): %s\n",name,name2,(long)i,(long)len,strerror(errno));
       return -1;
    }
    else return 0;
