]> granicus.if.org Git - neomutt/commitdiff
Fix functions declarations/definitions 1760/head
authorFederico Kircheis <federico.kircheis@gmail.com>
Thu, 4 Jul 2019 15:39:19 +0000 (17:39 +0200)
committerRichard Russon <rich@flatcap.org>
Fri, 5 Jul 2019 09:35:13 +0000 (10:35 +0100)
As the function declaration and definition did not match up

compress.h
icommands.h
imap/imap.h
mx.h
nntp/nntp.h
pop/pop.h

index cf398a968c4d32b621d86ac9d207d46062905492..4fef14849ba87ee4aeeda2e2680c3692ace4a598 100644 (file)
@@ -48,7 +48,6 @@ struct CompressInfo
 bool mutt_comp_can_append(struct Mailbox *m);
 bool mutt_comp_can_read(const char *path);
 int mutt_comp_valid_command(const char *cmd);
-int comp_path_probe(const char *path, const struct stat *st);
 
 extern struct MxOps MxCompOps;
 
index 80193d9cd09e717ef118456fb825ad37108c1105..ed0d06962749a6729050f0386c4ec4ec76ca1828 100644 (file)
@@ -48,6 +48,6 @@ struct ICommand
   unsigned long data; ///< Private data to pass to the command
 };
 
-int mutt_parse_icommand(/* const */ char *line, struct Buffer *err);
+enum CommandResult mutt_parse_icommand(/* const */ char *line, struct Buffer *err);
 
 #endif /* MUTT_ICOMMANDS_H */
index e5bcae418e31e6690efcdf9fa51b73f482c8cc99..d5fc6ff3a5a63cf6c638472cad699360e0f45511 100644 (file)
@@ -90,7 +90,7 @@ int imap_search(struct Mailbox *m, const struct PatternHead *pat);
 int imap_subscribe(char *path, bool subscribe);
 int imap_complete(char *buf, size_t buflen, char *path);
 int imap_fast_trash(struct Mailbox *m, char *dest);
-int imap_path_probe(const char *path, const struct stat *st);
+enum MailboxType imap_path_probe(const char *path, const struct stat *st);
 int imap_path_canon(char *buf, size_t buflen);
 
 extern struct MxOps MxImapOps;
diff --git a/mx.h b/mx.h
index 04f4d31e3483943743b7a18edd933ce77a5461fc..acb8de76e78aecd8cc69c4818f019644522c3602 100644 (file)
--- a/mx.h
+++ b/mx.h
@@ -283,7 +283,7 @@ struct Message *mx_msg_open_new    (struct Mailbox *m, struct Email *e, MsgOpenF
 struct Message *mx_msg_open        (struct Mailbox *m, int msgno);
 int             mx_msg_padding_size(struct Mailbox *m);
 int             mx_save_hcache     (struct Mailbox *m, struct Email *e);
-int             mx_path_canon      (char *buf, size_t buflen, const char *folder, int *magic);
+int             mx_path_canon      (char *buf, size_t buflen, const char *folder, enum MailboxType *magic);
 int             mx_path_canon2     (struct Mailbox *m, const char *folder);
 int             mx_path_parent     (char *buf, size_t buflen);
 int             mx_path_pretty     (char *buf, size_t buflen, const char *folder);
index 1cdd969c1576877fdd71bc8a46faaeba7773587e..da218905446638726c63463e447a334fd5f4c5ad 100644 (file)
@@ -173,7 +173,7 @@ void nntp_expand_path(char *buf, size_t buflen, struct ConnAccount *acct);
 void nntp_clear_cache(struct NntpAccountData *adata);
 const char *nntp_format_str(char *buf, size_t buflen, size_t col, int cols, char op, const char *src, const char *prec, const char *if_str, const char *else_str, unsigned long data, MuttFormatFlags flags);
 int nntp_compare_order(const void *a, const void *b);
-int nntp_path_probe(const char *path, const struct stat *st);
+enum MailboxType nntp_path_probe(const char *path, const struct stat *st);
 const char *group_index_format_str(char *buf, size_t buflen, size_t col, int cols, char op, const char *src, const char *prec, const char *if_str, const char *else_str, unsigned long data, MuttFormatFlags flags);
 int nntp_complete(char *buf, size_t buflen);
 
index 0b4d8eca0c22f2cd61f72041fd02123dfd010221..65b85ba002b405198d771409752853180bd8a6eb 100644 (file)
--- a/pop/pop.h
+++ b/pop/pop.h
@@ -56,6 +56,6 @@ extern unsigned char C_PopReconnect;
 extern struct MxOps MxPopOps;
 
 void pop_fetch_mail(void);
-int pop_path_probe(const char *path, const struct stat *st);
+enum MailboxType pop_path_probe(const char *path, const struct stat *st);
 
 #endif /* MUTT_POP_POP_H */