Date: Mon, 13 Jan 2003 21:35:28 +0100 From: Ramin Yaghoubzadeh Torky To: tjaden@users.sourceforge.net Subject: redpixel 1 libnet make error (?) Hi. I don't know whether it is only me, but I had to change the redpixel 1 source code I got from http://prdownloads.sourceforge.net/redpixel/redpixel-1.0.tar.gz so that it would compile.. In line 27 and 28 in libnet/lib/core/fixaddr.c, it says dest[i++] as an lvalue. At least on my gcc 3.2, this is not possible. Moving the i++ behind those expressions solves the problem. --- libnet/lib/core/fixaddr.c.orig Tue Apr 4 12:49:32 2000 +++ libnet/lib/core/fixaddr.c Tue Jan 14 14:25:07 2003 @@ -23,10 +23,13 @@ /* copy the address part the target address (sans port) */ colon = strrchr (p, ':'); if (colon) { - while (p+i < colon) - dest[i++] = p[i]; + while (p+i < colon) { + dest[i] = p[i]; + i++; + } - dest[i++] = ':'; + dest[i] = ':'; + i++; } /* add the port number of the remote channel */