From b284ee1b3c718e41bdcab6600532025b8743d477 Mon Sep 17 00:00:00 2001 From: Philipp Takacs Date: Sat, 17 Jan 2015 23:43:28 +0100 Subject: [PATCH] remove last rests of done in uip At some points done was used as callback funktion. --- uip/folder.c | 2 +- uip/inc.c | 2 +- uip/refile.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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"); -- 1.7.10.4