openbsd-ports/audio/id3ed/patches/patch-misc_cc
naddy ab7e1e5f44 Update to to version 1.10.4. Makefile patches and gcc3 patches
have been integrated.  From Nick Nauwelaerts <nick@nauwelaerts.net>.
2003-01-13 12:23:28 +00:00

22 lines
949 B
Plaintext

$OpenBSD: patch-misc_cc,v 1.3 2003/01/13 12:23:28 naddy Exp $
--- misc.cc.orig Fri Jan 10 03:52:38 2003
+++ misc.cc Fri Jan 10 08:34:30 2003
@@ -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
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;