remove last rests of done in uip
authorPhilipp Takacs <philipp@bureaucracy.de>
Sat, 17 Jan 2015 22:43:28 +0000 (23:43 +0100)
committerPhilipp Takacs <philipp@bureaucracy.de>
Sat, 17 Jan 2015 23:49:38 +0000 (00:49 +0100)
At some points done was used as callback funktion.

uip/folder.c
uip/inc.c
uip/refile.c

index 92ee496..e46519b 100644 (file)
@@ -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 */
index 159e010..213cc5d 100644 (file)
--- 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");
index cdada9b..96f355a 100644 (file)
@@ -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");