Commit 5eb82f55 authored by David Gibson's avatar David Gibson

strgrp: Fix compile errors in example

Commit 63f13d64 "strgrp: Tidy up kerneldoc in _info" introduced some compile
errors into the example in strgrp/_info.  This fixes them.
Signed-off-by: default avatarDavid Gibson <david@gibson.dropbear.id.au>
parent 428d3b02
......@@ -56,7 +56,7 @@
* Author: Andrew Jeffery <andrew@aj.id.au>
*
* 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));
* }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment