freebsd-ports/net-mgmt/flow-tools/files/patch-lib_ftio.c
Stanislav Sedov 8f7bbd0ed4 - Fix compiling with gcc 4.1
- Take maintainership

Approved by:	sem (mentor)
2006-10-02 09:11:16 +00:00

20 lines
455 B
C

--- lib/ftio.c.orig Mon Oct 2 12:26:19 2006
+++ lib/ftio.c Mon Oct 2 12:27:53 2006
@@ -2267,7 +2267,7 @@
break;
nleft -= nread;
- (char*)ptr += nread;
+ ptr = (char *)ptr + nread;
}
return (nbytes - nleft);
} /* readn */
@@ -2292,7 +2292,7 @@
return(nwritten); /* error */
nleft -= nwritten;
- (char*)ptr += nwritten;
+ ptr = (char *)ptr + nwritten;
}
return(nbytes - nleft);
} /* writen */