X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=ucw%2Fclists.h;h=d327479fdd8924f2807b0c94bb26d75e6ac84376;hb=156301aa8c7fd24d49ed27cfbd1afc10ccb7bc58;hp=7148ff1fb3ea0d36b2971f6297ce21c5e807d665;hpb=fbc1be50ddb11a237c487fbc2c2a23919e5025b2;p=libucw.git diff --git a/ucw/clists.h b/ucw/clists.h index 7148ff1f..d327479f 100644 --- a/ucw/clists.h +++ b/ucw/clists.h @@ -203,9 +203,9 @@ static inline void clist_move(clist *to, clist *from) /** * Compute the number of nodes in @l. Beware of linear time complexity. **/ -static inline uns clist_size(clist *l) +static inline uint clist_size(clist *l) { - uns i = 0; + uint i = 0; CLIST_FOR_EACH(cnode *, n, *l) i++; return i; @@ -249,8 +249,8 @@ static inline void *clist_unlink_tail(clist *l) * previous and next pointers equal to NULL. Returns 0 or 1. * * Nodes initialized to all zeroes are unlinked, inserting a node anywhere in a list - * makes it linked. Normal removal functions like clist_remove() do not mark nodes - * as unlinked, you need to call clist_unlink() instead. + * makes it linked. Normal removal functions like @clist_remove() do not mark nodes + * as unlinked, you need to call @clist_unlink() instead. **/ static inline int clist_is_linked(cnode *n) {