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

+ 0
- 2
output_write.c View File

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

Loading…
Cancel
Save