From: Philipp Takacs Date: Sat, 17 Jan 2015 22:43:28 +0000 (+0100) Subject: remove last rests of done in uip X-Git-Tag: mmh-0.2-RC1~56^2~5 X-Git-Url: http://git.marmaro.de/?p=mmh;a=commitdiff_plain;h=b284ee1b3c718e41bdcab6600532025b8743d477 remove last rests of done in uip At some points done was used as callback funktion. --- diff --git a/uip/folder.c b/uip/folder.c index 92ee496..e46519b 100644 --- a/uip/folder.c +++ b/uip/folder.c @@ -367,7 +367,7 @@ main(int argc, char **argv) ** Check if folder exists. If not, then see if ** we should create it, or just exit. */ - create_folder(toabsdir(folder), fcreat, done); + create_folder(toabsdir(folder), fcreat, exit); if (get_folder_info(folder, msg) && argfolder) { /* update current folder */ diff --git a/uip/inc.c b/uip/inc.c index 159e010..213cc5d 100644 --- a/uip/inc.c +++ b/uip/inc.c @@ -290,7 +290,7 @@ main(int argc, char **argv) if ((maildir_copy = strdup(maildir)) == NULL) adios(maildir, "error allocating memory to copy maildir"); - create_folder(maildir, noisy ? 0 : 1, done); + create_folder(maildir, noisy ? 0 : 1, exit); if (chdir(maildir) == NOTOK) adios(maildir, "unable to change directory to"); diff --git a/uip/refile.c b/uip/refile.c index cdada9b..96f355a 100644 --- a/uip/refile.c +++ b/uip/refile.c @@ -230,7 +230,7 @@ opnfolds(struct st_fold *folders, int nfolders) chdir(toabsdir("+")); strncpy(nmaildir, toabsdir(fp->f_name), sizeof(nmaildir)); - create_folder(nmaildir, 0, done); + create_folder(nmaildir, 0, exit); if (chdir(nmaildir) == NOTOK) adios(nmaildir, "unable to change directory to");