Removed useless constant

This commit is contained in:
wiire-a 2017-12-23 17:06:06 +01:00
parent 35b3fb030f
commit a55f17b77a
2 changed files with 2 additions and 3 deletions

View File

@ -952,8 +952,8 @@ usage_err:
if (is_mode_selected(RTL819x)) { /* Ignore --start and --end otherwise */ if (is_mode_selected(RTL819x)) { /* Ignore --start and --end otherwise */
wps->start = t_start.tv_sec + SEC_PER_DAY; /* Extra 1 day */ wps->start = t_start.tv_sec + SEC_PER_DAY;
wps->end = t_start.tv_sec - MODE3_DAYS * SEC_PER_DAY; wps->end = t_start.tv_sec - SEC_PER_DAY;
/* Attributes --start and --end can be switched start > end or end > start */ /* Attributes --start and --end can be switched start > end or end > start */
if (start_p != (time_t) -1) { if (start_p != (time_t) -1) {

View File

@ -27,7 +27,6 @@
/* Modes constants */ /* Modes constants */
#define MODE_LEN 5 #define MODE_LEN 5
#define MODE3_DAYS 1
#define MODE3_TRIES (60 * 10) #define MODE3_TRIES (60 * 10)
#define SEC_PER_DAY 86400 #define SEC_PER_DAY 86400