summaryrefslogtreecommitdiff
path: root/common.c
diff options
context:
space:
mode:
authorschmirl <schmirl>2007-09-21 11:55:56 +0000
committerschmirl <schmirl>2007-09-21 11:55:56 +0000
commitd0385f5252ba5f5463028b848b7036413626cf42 (patch)
tree9deb7760e6bbade0851d64a3f948463d0006d898 /common.c
parent17ff4d32e8d779f68deb4ba838201ec3c8ab7edd (diff)
downloadvdr-plugin-streamdev-d0385f5252ba5f5463028b848b7036413626cf42.tar.gz
vdr-plugin-streamdev-d0385f5252ba5f5463028b848b7036413626cf42.tar.bz2
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
Diffstat (limited to 'common.c')
-rw-r--r--common.c4
1 files changed, 2 insertions, 2 deletions
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 <vdr/channels.h>
@@ -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)