From: David Gibson Date: Mon, 14 Sep 2015 11:06:11 +0000 (+1000) Subject: strgrp: Fix compile errors in example X-Git-Url: http://git.ozlabs.org/?p=ccan;a=commitdiff_plain;h=5eb82f554324f435f73e4c140833d15f9808b5e4 strgrp: Fix compile errors in example Commit 63f13d6 "strgrp: Tidy up kerneldoc in _info" introduced some compile errors into the example in strgrp/_info. This fixes them. Signed-off-by: David Gibson --- diff --git a/ccan/strgrp/_info b/ccan/strgrp/_info index 98f9bb2b..e0b70b40 100644 --- a/ccan/strgrp/_info +++ b/ccan/strgrp/_info @@ -56,7 +56,7 @@ * Author: Andrew Jeffery * * Example: - * FILE *const f; + * FILE *f; * char *buf; * struct strgrp *ctx; * struct strgrp_iter *iter; @@ -77,10 +77,10 @@ * * // Re-implement something similar to strgrp_print() via API as an * // example - * *iter = strgrp_iter_new(ctx); + * iter = strgrp_iter_new(ctx); * while(NULL != (grp = strgrp_iter_next(iter))) { * printf("%s\n", strgrp_grp_key(grp)); - * *grp_iter = strgrp_grp_iter_new(grp); + * grp_iter = strgrp_grp_iter_new(grp); * while(NULL != (item = strgrp_grp_iter_next(grp_iter))) { * printf("\t%s\n", strgrp_item_key(item)); * }