no more list2_t for mx's anymore either.
[apps/madmutt.git] / compress.c
index e97fc8d..f4b8b67 100644 (file)
@@ -461,13 +461,17 @@ int mutt_slow_close_compressed (CONTEXT * ctx)
   return (0);
 }
 
-mx_t* compress_reg_mx (void) {
-  mx_t* fmt = p_new(mx_t, 1);
-  fmt->type = M_COMPRESSED;
-  fmt->local = 1;
-  fmt->mx_is_magic = mbox_is_magic;
-  fmt->mx_check_empty = mbox_check_empty;
-  fmt->mx_access = access;
-  fmt->mx_open_mailbox = mutt_open_read_compressed;
-  return (fmt);
-}
+mx_t const compress_mx = {
+    M_COMPRESSED,
+    1,
+    mbox_is_magic,
+    mbox_check_empty,
+    access,
+    mutt_open_read_compressed,
+    NULL,
+    NULL,
+    NULL,
+    NULL,
+    NULL,
+    NULL,
+};