projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
move url.[hc] into the lib-lib.
[apps/madmutt.git]
/
nntp
/
mx_nntp.c
diff --git
a/nntp/mx_nntp.c
b/nntp/mx_nntp.c
index
cd309ea
..
e607885
100644
(file)
--- a/
nntp/mx_nntp.c
+++ b/
nntp/mx_nntp.c
@@
-9,16
+9,17
@@
#include <sys/stat.h>
#include <sys/stat.h>
+#include <lib-lib/mem.h>
+#include <lib-lib/str.h>
+#include <lib-lib/url.h>
+
#include "mutt.h"
#include "nntp.h"
#include "mx.h"
#include "mx_nntp.h"
#include "mutt.h"
#include "nntp.h"
#include "mx.h"
#include "mx_nntp.h"
-#include "lib/mem.h"
-#include "lib/str.h"
-#include "url.h"
static int nntp_is_magic (const char* path, struct stat* st) {
url_scheme_t s = url_check_scheme (NONULL (path));
static int nntp_is_magic (const char* path, struct stat* st) {
url_scheme_t s = url_check_scheme (NONULL (path));
@@
-40,7
+41,7
@@
static int acl_check_nntp (CONTEXT* ctx, int bit) {
/* called by nntp_init(); don't call elsewhere */
mx_t* nntp_reg_mx (void) {
/* called by nntp_init(); don't call elsewhere */
mx_t* nntp_reg_mx (void) {
- mx_t* fmt =
mem_calloc (1, sizeof (mx_t)
);
+ mx_t* fmt =
p_new(mx_t, 1
);
/* make up mx_t record... */
fmt->type = M_NNTP;
/* make up mx_t record... */
fmt->type = M_NNTP;