Browse Source

queue: Remove unused variable.

Georgi Chorbadzhiyski 12 years ago
parent
commit
4bf0590502
1 changed files with 1 additions and 2 deletions
  1. 1
    2
      queue.c

+ 1
- 2
queue.c View File

37
 
37
 
38
 void queue_free(QUEUE **pq) {
38
 void queue_free(QUEUE **pq) {
39
 	QUEUE *q = *pq;
39
 	QUEUE *q = *pq;
40
-	void *data;
41
 	if (!q)
40
 	if (!q)
42
 		return;
41
 		return;
43
 	while (q->items > 0) {
42
 	while (q->items > 0) {
44
-		data = queue_get(q);
43
+		queue_get(q);
45
 	}
44
 	}
46
 	pthread_mutex_destroy(q->mutex);
45
 	pthread_mutex_destroy(q->mutex);
47
 	FREE(q->mutex);
46
 	FREE(q->mutex);

Loading…
Cancel
Save