Give export walk ctx clearer name.

This commit is contained in:
Michael Drake 2013-08-28 11:05:21 +01:00
parent eec80c561c
commit a61e74714d
1 changed files with 4 additions and 4 deletions

View File

@ -838,14 +838,14 @@ static nserror hotlist_generate(void)
}
struct treeview_walk_ctx {
struct treeview_export_walk_ctx {
FILE *fp;
};
/** Callback for treeview_walk node entering */
static nserror hotlist_export_enter_cb(void *ctx, void *node_data,
enum treeview_node_type type, bool *abort)
{
struct treeview_walk_ctx *tw = ctx;
struct treeview_export_walk_ctx *tw = ctx;
if (type == TREE_NODE_ENTRY) {
struct hotlist_entry *e = node_data;
@ -897,7 +897,7 @@ static nserror hotlist_export_enter_cb(void *ctx, void *node_data,
static nserror hotlist_export_leave_cb(void *ctx, void *node_data,
enum treeview_node_type type, bool *abort)
{
struct treeview_walk_ctx *tw = ctx;
struct treeview_export_walk_ctx *tw = ctx;
if (type == TREE_NODE_FOLDER) {
fputs("</ul>\n", tw->fp);
@ -908,7 +908,7 @@ static nserror hotlist_export_leave_cb(void *ctx, void *node_data,
/* Exported interface, documented in hotlist.h */
nserror hotlist_export(const char *path, const char *title)
{
struct treeview_walk_ctx tw;
struct treeview_export_walk_ctx tw;
nserror err;
FILE *fp;