sectionsd:unsigned is never less than zero & add include

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@2137 e54a6e83-5905-42d5-8d5c-058d10e6a962


Origin commit data
------------------
Branch: ni/coolstream
Commit: cc2a4c4cef
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2012-03-04 (Sun, 04 Mar 2012)



------------------
This commit was generated by Migit
This commit is contained in:
Jacek Jendrzej
2012-03-04 16:26:06 +00:00
parent baf2ab1b5c
commit d47ba2aa15
2 changed files with 4 additions and 2 deletions

View File

@@ -276,7 +276,7 @@ int DMX::getSection(char *buf, const unsigned timeoutInMSeconds, int &timeouts)
extended_section_header *extended_header;
eit_extended_section_header *eit_extended_header;
int rc;
unsigned short section_length;
short section_length = 0;
unsigned short current_onid = 0;
unsigned short current_tsid = 0;

View File

@@ -35,6 +35,8 @@
#include <sys/socket.h>
#include <sys/un.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <netinet/in.h>
#include <netinet/in_systm.h>
#include <netinet/ip.h>
@@ -4592,7 +4594,7 @@ static void *insertEventsfromFile(void *)
struct stat buf;
indexname = epg_dir + "index.tmp";
//skip read EPG cache if index.tmp available
if (!(stat(indexname.c_str(), &buf) == 0)){
if (stat(indexname.c_str(), &buf) != 0){
indexname = epg_dir + "index.xml";