Revision 743
Fixed compilation errors.
queue.c | ||
---|---|---|
24 | 24 |
Queue* queue_create() |
25 | 25 |
{ |
26 | 26 |
Queue* q = (Queue*)malloc(sizeof(Queue)); |
27 |
|
|
28 |
if (q == NULL) |
|
29 |
{ |
|
30 |
WL_DEBUG_PRINT("Out of memory.\r\n"); |
|
31 |
return NULL; |
|
32 |
} |
|
33 |
|
|
34 | 27 |
q->head = NULL; |
35 | 28 |
q->size = 0; |
36 | 29 |
return q; |
Also available in: Unified diff