mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-26 23:13:00 +02:00
timerdclient: fix -Wstringop-truncation warnings
Origin commit data
------------------
Branch: ni/coolstream
Commit: af3abc9b8e
Author: Markus Volk <f_l_k@t-online.de>
Date: 2020-01-30 (Thu, 30 Jan 2020)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -347,7 +347,7 @@ int CTimerdClient::addTimerEvent( CTimerd::CTimerEventTypes evType, void* data,
|
|||||||
tri.recordingSafety = ri->recordingSafety;
|
tri.recordingSafety = ri->recordingSafety;
|
||||||
tri.autoAdjustToEPG = ri->autoAdjustToEPG;
|
tri.autoAdjustToEPG = ri->autoAdjustToEPG;
|
||||||
tri.channel_ci = ri->channel_ci; //NI
|
tri.channel_ci = ri->channel_ci; //NI
|
||||||
strncpy(tri.recordingDir, ri->recordingDir, RECORD_DIR_MAXLEN-1);
|
strncpy(tri.recordingDir, ri->recordingDir, RECORD_DIR_MAXLEN);
|
||||||
length = sizeof( CTimerd::TransferRecordingInfo);
|
length = sizeof( CTimerd::TransferRecordingInfo);
|
||||||
data = &tri;
|
data = &tri;
|
||||||
}
|
}
|
||||||
|
@@ -121,7 +121,7 @@ class CTimerdClient:private CBasicClient
|
|||||||
eventInfo.recordingSafety = safety;
|
eventInfo.recordingSafety = safety;
|
||||||
eventInfo.autoAdjustToEPG = autoAdjust;
|
eventInfo.autoAdjustToEPG = autoAdjust;
|
||||||
eventInfo.channel_ci = channel_ci; //NI
|
eventInfo.channel_ci = channel_ci; //NI
|
||||||
strncpy(eventInfo.recordingDir, recDir.c_str(), RECORD_DIR_MAXLEN);
|
strncpy(eventInfo.recordingDir, recDir.c_str(), RECORD_DIR_MAXLEN-1);
|
||||||
return addTimerEvent(CTimerd::TIMER_RECORD, &eventInfo, announcetime, alarmtime, stoptime, evrepeat, repeatcount,forceAdd);
|
return addTimerEvent(CTimerd::TIMER_RECORD, &eventInfo, announcetime, alarmtime, stoptime, evrepeat, repeatcount,forceAdd);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -34,7 +34,7 @@
|
|||||||
|
|
||||||
#define REMINDER_MESSAGE_MAXLEN 31
|
#define REMINDER_MESSAGE_MAXLEN 31
|
||||||
#define EXEC_PLUGIN_NAME_MAXLEN 256
|
#define EXEC_PLUGIN_NAME_MAXLEN 256
|
||||||
#define RECORD_DIR_MAXLEN 1024
|
#define RECORD_DIR_MAXLEN 1025
|
||||||
#define EPG_TITLE_MAXLEN 51
|
#define EPG_TITLE_MAXLEN 51
|
||||||
|
|
||||||
#define TIMERD_APIDS_CONF 0x00
|
#define TIMERD_APIDS_CONF 0x00
|
||||||
@@ -46,14 +46,14 @@
|
|||||||
class CTimerd
|
class CTimerd
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
enum CTimerEventRepeat
|
enum CTimerEventRepeat
|
||||||
{
|
{
|
||||||
TIMERREPEAT_ONCE = 0,
|
TIMERREPEAT_ONCE = 0,
|
||||||
TIMERREPEAT_DAILY,
|
TIMERREPEAT_DAILY,
|
||||||
TIMERREPEAT_WEEKLY,
|
TIMERREPEAT_WEEKLY,
|
||||||
TIMERREPEAT_BIWEEKLY,
|
TIMERREPEAT_BIWEEKLY,
|
||||||
TIMERREPEAT_FOURWEEKLY,
|
TIMERREPEAT_FOURWEEKLY,
|
||||||
TIMERREPEAT_MONTHLY,
|
TIMERREPEAT_MONTHLY,
|
||||||
TIMERREPEAT_BYEVENTDESCRIPTION,
|
TIMERREPEAT_BYEVENTDESCRIPTION,
|
||||||
TIMERREPEAT_WEEKDAYS = 0x100 // Bits 9-15 specify weekdays (9=mo,10=di,...)
|
TIMERREPEAT_WEEKDAYS = 0x100 // Bits 9-15 specify weekdays (9=mo,10=di,...)
|
||||||
};
|
};
|
||||||
@@ -71,14 +71,14 @@ class CTimerd
|
|||||||
TIMER_IMMEDIATE_RECORD,
|
TIMER_IMMEDIATE_RECORD,
|
||||||
TIMER_REMOTEBOX
|
TIMER_REMOTEBOX
|
||||||
};
|
};
|
||||||
|
|
||||||
enum CTimerEventStates
|
enum CTimerEventStates
|
||||||
{
|
{
|
||||||
TIMERSTATE_SCHEDULED,
|
TIMERSTATE_SCHEDULED,
|
||||||
TIMERSTATE_PREANNOUNCE,
|
TIMERSTATE_PREANNOUNCE,
|
||||||
TIMERSTATE_ISRUNNING,
|
TIMERSTATE_ISRUNNING,
|
||||||
TIMERSTATE_HASFINISHED,
|
TIMERSTATE_HASFINISHED,
|
||||||
TIMERSTATE_TERMINATED
|
TIMERSTATE_TERMINATED
|
||||||
};
|
};
|
||||||
|
|
||||||
struct EventInfo
|
struct EventInfo
|
||||||
@@ -148,7 +148,7 @@ class CTimerd
|
|||||||
};
|
};
|
||||||
|
|
||||||
struct responseGetTimer
|
struct responseGetTimer
|
||||||
{
|
{
|
||||||
int eventID;
|
int eventID;
|
||||||
CTimerEventTypes eventType;
|
CTimerEventTypes eventType;
|
||||||
CTimerEventStates eventState;
|
CTimerEventStates eventState;
|
||||||
@@ -170,13 +170,13 @@ class CTimerd
|
|||||||
int rem_pre;
|
int rem_pre;
|
||||||
int rem_post;
|
int rem_post;
|
||||||
bool channel_ci; //NI
|
bool channel_ci; //NI
|
||||||
|
|
||||||
bool operator< (const responseGetTimer& a) const
|
bool operator< (const responseGetTimer& a) const
|
||||||
{
|
{
|
||||||
return this->alarmTime < a.alarmTime ;
|
return this->alarmTime < a.alarmTime ;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef std::vector<responseGetTimer> TimerList;
|
typedef std::vector<responseGetTimer> TimerList;
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user