Browse Source

Remove unused variables.

Georgi Chorbadzhiyski 9 years ago
parent
commit
df7d4e79ca
2 changed files with 1 additions and 4 deletions
  1. 1
    2
      input.c
  2. 0
    2
      output_write.c

+ 1
- 2
input.c View File

284
 	if (!start && !end)
284
 	if (!start && !end)
285
 		return 1;
285
 		return 1;
286
 	struct tm ltime;
286
 	struct tm ltime;
287
-	struct tm *ltimep = &ltime;
288
 	time_t timep = time(NULL);
287
 	time_t timep = time(NULL);
289
-	ltimep = localtime_r(&timep, ltimep);
288
+	localtime_r(&timep, &ltime);
290
 	int seconds = ltime.tm_sec + ltime.tm_min * 60 + ltime.tm_hour * 3600;
289
 	int seconds = ltime.tm_sec + ltime.tm_min * 60 + ltime.tm_hour * 3600;
291
 	if (start > end) {
290
 	if (start > end) {
292
 		if (start >= seconds && end < seconds)
291
 		if (start >= seconds && end < seconds)

+ 0
- 2
output_write.c View File

117
 	CONFIG *conf = _config;
117
 	CONFIG *conf = _config;
118
 	OUTPUT *o = conf->output;
118
 	OUTPUT *o = conf->output;
119
 	int buf_in_use = 0;
119
 	int buf_in_use = 0;
120
-	unsigned int o_datasize = 0;
121
 	struct timeval stats_ts, now;
120
 	struct timeval stats_ts, now;
122
 	struct timeval start_write_ts, end_write_ts, used_ts;
121
 	struct timeval start_write_ts, end_write_ts, used_ts;
123
 	unsigned long long stats_interval;
122
 	unsigned long long stats_interval;
157
 			}
156
 			}
158
 			o->traffic_period = 0;
157
 			o->traffic_period = 0;
159
 			o->padding_period = 0;
158
 			o->padding_period = 0;
160
-			o_datasize = 0;
161
 		}
159
 		}
162
 
160
 
163
 		gettimeofday(&start_write_ts, NULL);
161
 		gettimeofday(&start_write_ts, NULL);

Loading…
Cancel
Save