From c48f8fd39ae20337578cfd7bf3ac771f3cf6cb32 Mon Sep 17 00:00:00 2001 From: Oliver Schmidt Date: Sun, 22 May 2011 23:08:40 +0200 Subject: [PATCH] Keep gcc 4.x from complaining about 'lvalue required as increment operand'. --- apps/telnetd/telnetd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/telnetd/telnetd.c b/apps/telnetd/telnetd.c index 2d388f5f9..1ee7bd586 100644 --- a/apps/telnetd/telnetd.c +++ b/apps/telnetd/telnetd.c @@ -393,9 +393,10 @@ telnetd_appcall(void *ts) } } else { if(uip_poll()) { - tcp_markconn(uip_conn, ++(char *)ts); if(ts == (char *)10) { uip_close(); + } else { + tcp_markconn(uip_conn, (char *)ts + 1); } } }