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:
Berthold Stoeger 2019-05-30 18:37:01 +02:00 committed by Dirk Hohndel
parent 6200909ba4
commit 27d7f27409

View file

@ -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; \