From d0385f5252ba5f5463028b848b7036413626cf42 Mon Sep 17 00:00:00 2001 From: schmirl Date: Fri, 21 Sep 2007 11:55:56 +0000 Subject: fixes for some new warnings from gcc 4.3.0 - array subscript is above array bounds (real bug - might overwrite other var) - deprecated conversion from string constant to 'char*' - suggest explicit braces to avoid ambiguous 'else' Thanks to Petri Hintukainen (#354) Modified Files: common.c libdvbmpeg/cpptools.cc libdvbmpeg/remux.c --- common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'common.c') diff --git a/common.c b/common.c index 09fcd6b..f1a6e6b 100644 --- a/common.c +++ b/common.c @@ -1,5 +1,5 @@ /* - * $Id: common.c,v 1.4 2005/02/11 16:44:14 lordjaxom Exp $ + * $Id: common.c,v 1.5 2007/09/21 11:55:56 schmirl Exp $ */ #include @@ -270,7 +270,7 @@ eOSState cMenuEditIpItem::ProcessKey(eKeys Key) { } else curNum = curNum * 10 + (Key - k0); - if (!step && (curNum * 10 > 255) || (curNum == 0)) { + if ((curNum * 10 > 255) || (curNum == 0)) { in_addr addr; addr.s_addr = inet_addr(value); if ((int)addr.s_addr == -1) -- cgit v1.2.3