X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Fjbitset%2Fjbitset.h;h=acac2a76526d5ed64b26a9126cc098b00b51dd4e;hb=781fd230813bb2a6d385c887ae06c37e829dbbfb;hp=4489a8f50021a1080fb4ccd5ccdc442c710804e7;hpb=68ff57159ef08d9da9fe256c02070cdd97da15fa;p=ccan diff --git a/ccan/jbitset/jbitset.h b/ccan/jbitset/jbitset.h index 4489a8f5..acac2a76 100644 --- a/ccan/jbitset/jbitset.h +++ b/ccan/jbitset/jbitset.h @@ -1,3 +1,4 @@ +/* Licensed under LGPLv2.1+ - see LICENSE file for details */ #ifndef CCAN_JBITSET_H #define CCAN_JBITSET_H #include @@ -33,7 +34,7 @@ struct jbitset { JError_t err; const char *errstr; }; -const char *COLD_ATTRIBUTE jbit_error_(struct jbitset *set); +const char *COLD jbit_error_(struct jbitset *set); /** * jbit_error - test for an error in the a previous jbit_ operation. @@ -155,7 +156,7 @@ static inline unsigned long jbit_popcount(const struct jbitset *set, * assert(!jbit_test(set, 0)); * for (i = 0; (val = jbit_nth(set, i, 0)) != 0; i++) { * assert(jbit_popcount(set, 0, val) == i); - * printf("Value %zu = %zu\n", i, val); + * printf("Value %lu = %lu\n", i, val); * } */ static inline unsigned long jbit_nth(const struct jbitset *set, @@ -178,7 +179,7 @@ static inline unsigned long jbit_nth(const struct jbitset *set, * assert(!jbit_test(set, 0)); * printf("Set contents (increasing order):"); * for (i = jbit_first(set, 0); i; i = jbit_next(set, i, 0)) - * printf(" %zu", i); + * printf(" %lu", i); * printf("\n"); */ static inline unsigned long jbit_first(const struct jbitset *set, @@ -221,7 +222,7 @@ static inline unsigned long jbit_next(const struct jbitset *set, * assert(!jbit_test(set, 0)); * printf("Set contents (decreasing order):"); * for (i = jbit_last(set, 0); i; i = jbit_prev(set, i, 0)) - * printf(" %zu", i); + * printf(" %lu", i); * printf("\n"); */ static inline unsigned long jbit_last(const struct jbitset *set,