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,11 +37,10 @@ QUEUE *queue_new(void) {
37 37
 
38 38
 void queue_free(QUEUE **pq) {
39 39
 	QUEUE *q = *pq;
40
-	void *data;
41 40
 	if (!q)
42 41
 		return;
43 42
 	while (q->items > 0) {
44
-		data = queue_get(q);
43
+		queue_get(q);
45 44
 	}
46 45
 	pthread_mutex_destroy(q->mutex);
47 46
 	FREE(q->mutex);

Loading…
Cancel
Save