mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-18 10:51:07 +02:00
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
------------------
Commit: cc2a4c4cef
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2012-03-04 (Sun, 04 Mar 2012)
This commit is contained in:
@@ -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;
|
||||
|
||||
|
@@ -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";
|
||||
|
||||
|
Reference in New Issue
Block a user