mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
Cleanup: fix comment to STRUCTURED_LIST_FREE
The comment said "Clear everything but the first element" but actually the macro freed the whole list including the first element. For dive computers it was explicitly called on the second element. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
6200909ba4
commit
27d7f27409
1 changed files with 1 additions and 2 deletions
|
@ -2,8 +2,7 @@
|
|||
#ifndef STRUCTURED_LIST_H
|
||||
#define STRUCTURED_LIST_H
|
||||
|
||||
/* Clear everything but the first element;
|
||||
* this works for taglist, picturelist, even dive computers */
|
||||
/* Clear whole list; this works for taglist, picturelist and dive computers */
|
||||
#define STRUCTURED_LIST_FREE(_type, _start, _free) \
|
||||
{ \
|
||||
_type *_ptr = _start; \
|
||||
|
|
Loading…
Reference in a new issue