diff options
author | schmirl <schmirl> | 2007-09-21 11:55:56 +0000 |
---|---|---|
committer | schmirl <schmirl> | 2007-09-21 11:55:56 +0000 |
commit | d0385f5252ba5f5463028b848b7036413626cf42 (patch) | |
tree | 9deb7760e6bbade0851d64a3f948463d0006d898 /common.c | |
parent | 17ff4d32e8d779f68deb4ba838201ec3c8ab7edd (diff) | |
download | vdr-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |