chiark
/
gitweb
/
~mdw
/
disorder
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6c7a654
)
Catch up on a missing bit of eclient API change
author
Richard Kettlewell
<rjk@greenend.org.uk>
Sun, 8 Jun 2008 21:39:31 +0000
(22:39 +0100)
committer
Richard Kettlewell
<rjk@greenend.org.uk>
Sun, 8 Jun 2008 21:39:31 +0000
(22:39 +0100)
disobedience/choose.c
patch
|
blob
|
blame
|
history
diff --git
a/disobedience/choose.c
b/disobedience/choose.c
index 8e3a576deb8f9d990c19faa72327de1f66c58a21..731c7a2eee64a83d48db9ccf002d7ab73e0a8976 100644
(file)
--- a/
disobedience/choose.c
+++ b/
disobedience/choose.c
@@
-501,8
+501,6
@@
static void got_dirs(void *v, const char *error, int nvec, char **vec) {
/** @brief Fill a child node */
static void fill_directory_node(struct choosenode *cn) {
/** @brief Fill a child node */
static void fill_directory_node(struct choosenode *cn) {
- struct callbackdata *cbd;
-
D(("fill_directory_node %s", cn->path));
/* TODO: caching */
if(cn->flags & CN_GETTING_ANY)
D(("fill_directory_node %s", cn->path));
/* TODO: caching */
if(cn->flags & CN_GETTING_ANY)
@@
-510,12
+508,8
@@
static void fill_directory_node(struct choosenode *cn) {
assert(report_label != 0);
gtk_label_set_text(GTK_LABEL(report_label), "getting files");
clear_children(cn);
assert(report_label != 0);
gtk_label_set_text(GTK_LABEL(report_label), "getting files");
clear_children(cn);
- cbd = xmalloc(sizeof *cbd);
- cbd->u.choosenode = cn;
- disorder_eclient_dirs(client, got_dirs, cn->path, 0, cbd);
- cbd = xmalloc(sizeof *cbd);
- cbd->u.choosenode = cn;
- disorder_eclient_files(client, got_files, cn->path, 0, cbd);
+ disorder_eclient_dirs(client, got_dirs, cn->path, 0, cn);
+ disorder_eclient_files(client, got_files, cn->path, 0, cn);
cn->flags |= CN_GETTING_FILES|CN_GETTING_DIRS;
gets_in_flight += 2;
}
cn->flags |= CN_GETTING_FILES|CN_GETTING_DIRS;
gets_in_flight += 2;
}