X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=commands.c;h=13d26e277abb5cb6efbdb33d23b2b44ee3d71cb5;hb=90d59c61839822ec7897955ffa815eb358224d2c;hp=a5255d56181474f7735557a6525550b841917699;hpb=9a1805afc94b21d8766e6e67ef57f92aaf966e84;p=apps%2Fmadmutt.git diff --git a/commands.c b/commands.c index a5255d5..13d26e2 100644 --- a/commands.c +++ b/commands.c @@ -38,6 +38,7 @@ #include "lib/mem.h" #include "lib/intl.h" #include "lib/str.h" +#include "lib/debug.h" #include #include @@ -810,7 +811,7 @@ int mutt_update_list_file (char *filename, char *section, char *key, int ext = 0, done = 0, r = 0; snprintf (oldfile, sizeof (oldfile), "%s.bak", filename); - dprint (1, (debugfile, "Renaming %s to %s\n", filename, oldfile)); + debug_print (1, ("Renaming %s to %s\n", filename, oldfile)); /* if file not exist, create it */ if ((ifp = safe_fopen (filename, "a"))) @@ -820,13 +821,13 @@ int mutt_update_list_file (char *filename, char *section, char *key, return (-1); } - dprint (1, (debugfile, "Opening %s\n", oldfile)); + debug_print (1, ("Opening %s\n", oldfile)); if (!(ifp = safe_fopen (oldfile, "r"))) { mutt_perror (_("Unable to open backup file for reading")); return (-1); } - dprint (1, (debugfile, "Opening %s\n", filename)); + debug_print (1, ("Opening %s\n", filename)); if (!(ofp = safe_fopen (filename, "w"))) { fclose (ifp); mutt_perror (_("Unable to open new file for writing"));