Skip to content

Commit

Permalink
Remove unused variables.
Browse files Browse the repository at this point in the history
  • Loading branch information
Georgi Chorbadzhiyski committed Feb 2, 2015
1 parent 39377ee commit df7d4e7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 1 addition & 2 deletions input.c
Original file line number Diff line number Diff line change
Expand Up @@ -284,9 +284,8 @@ int in_worktime(int start, int end) {
if (!start && !end)
return 1;
struct tm ltime;
struct tm *ltimep = &ltime;
time_t timep = time(NULL);
ltimep = localtime_r(&timep, ltimep);
localtime_r(&timep, &ltime);
int seconds = ltime.tm_sec + ltime.tm_min * 60 + ltime.tm_hour * 3600;
if (start > end) {
if (start >= seconds && end < seconds)
Expand Down
2 changes: 0 additions & 2 deletions output_write.c
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ void * output_handle_write(void *_config) {
CONFIG *conf = _config;
OUTPUT *o = conf->output;
int buf_in_use = 0;
unsigned int o_datasize = 0;
struct timeval stats_ts, now;
struct timeval start_write_ts, end_write_ts, used_ts;
unsigned long long stats_interval;
Expand Down Expand Up @@ -157,7 +156,6 @@ void * output_handle_write(void *_config) {
}
o->traffic_period = 0;
o->padding_period = 0;
o_datasize = 0;
}

gettimeofday(&start_write_ts, NULL);
Expand Down

0 comments on commit df7d4e7

Please sign in to comment.