projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add m_strchrnul that does what GNU strchrnul does: search for 'c' or
[apps/madmutt.git]
/
lib.c
diff --git
a/lib.c
b/lib.c
index
39676a5
..
7dd53a0
100644
(file)
--- a/
lib.c
+++ b/
lib.c
@@
-8,40
+8,21
@@
* please see the file GPL in the top level source directory.
*/
* please see the file GPL in the top level source directory.
*/
-/*
- * This file used to contain some more functions, namely those
- * which are now in muttlib.c. They have been removed, so we have
- * some of our "standard" functions in external programs, too.
- */
-
#if HAVE_CONFIG_H
# include "config.h"
#endif
#if HAVE_CONFIG_H
# include "config.h"
#endif
-#include <string.h>
-#include <ctype.h>
-#include <unistd.h>
-#include <stdlib.h>
-#include <sys/wait.h>
-#include <errno.h>
-#include <sys/stat.h>
-#include <fcntl.h>
-#include <pwd.h>
-
-#include <lib-lib/macros.h>
-#include <lib-lib/mem.h>
-#include <lib-lib/str.h>
-#include <lib-lib/debug.h>
+#include <stdio.h>
+#include <stdarg.h>
#include "lib.h"
void mutt_nocurses_error (const char *fmt, ...)
{
#include "lib.h"
void mutt_nocurses_error (const char *fmt, ...)
{
- va_list ap;
+
va_list ap;
-
va_start
(ap, fmt);
-
vfprintf
(stderr, fmt, ap);
-
va_end
(ap);
-
fputc
('\n', stderr);
+
va_start
(ap, fmt);
+
vfprintf
(stderr, fmt, ap);
+
va_end
(ap);
+
fputc
('\n', stderr);
}
}
-