projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rocco Rutte:
[apps/madmutt.git]
/
commands.c
diff --git
a/commands.c
b/commands.c
index
a5255d5
..
13d26e2
100644
(file)
--- a/
commands.c
+++ b/
commands.c
@@
-38,6
+38,7
@@
#include "lib/mem.h"
#include "lib/intl.h"
#include "lib/str.h"
#include "lib/mem.h"
#include "lib/intl.h"
#include "lib/str.h"
+#include "lib/debug.h"
#include <errno.h>
#include <unistd.h>
#include <errno.h>
#include <unistd.h>
@@
-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);
int ext = 0, done = 0, r = 0;
snprintf (oldfile, sizeof (oldfile), "%s.bak", filename);
- d
print (1, (debugfile,
"Renaming %s to %s\n", filename, oldfile));
+ d
ebug_print (1, (
"Renaming %s to %s\n", filename, oldfile));
/* if file not exist, create it */
if ((ifp = safe_fopen (filename, "a")))
/* 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);
}
return (-1);
}
- d
print (1, (debugfile,
"Opening %s\n", oldfile));
+ d
ebug_print (1, (
"Opening %s\n", oldfile));
if (!(ifp = safe_fopen (oldfile, "r"))) {
mutt_perror (_("Unable to open backup file for reading"));
return (-1);
}
if (!(ifp = safe_fopen (oldfile, "r"))) {
mutt_perror (_("Unable to open backup file for reading"));
return (-1);
}
- d
print (1, (debugfile,
"Opening %s\n", filename));
+ d
ebug_print (1, (
"Opening %s\n", filename));
if (!(ofp = safe_fopen (filename, "w"))) {
fclose (ifp);
mutt_perror (_("Unable to open new file for writing"));
if (!(ofp = safe_fopen (filename, "w"))) {
fclose (ifp);
mutt_perror (_("Unable to open new file for writing"));