Re: Possible problem with zero-copy TCP and sendfile()

From: Wolfgang Rohdewald (WRohdewald@dplanet.ch)
Date: Tue Apr 17 2001 - 16:22:47 EST


On Tuesday 17 April 2001 22:36, Jan Kasprzak wrote:
> +    if (len == -1 || len > 0 && len < count) {

are you sure there are no missing () ?

if ((len == -1) || (len > 0) && (len < count)) {

assumig that && has precedence over || (I believe so)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Apr 23 2001 - 21:00:24 EST