From: Pierre Habouzit Date: Fri, 17 Nov 2006 21:13:01 +0000 (+0100) Subject: less warnigs X-Git-Url: http://git.madism.org/?a=commitdiff_plain;h=330047119d7dc2674918d12253fc24146aefc8d3;p=apps%2Fmadmutt.git less warnigs Signed-off-by: Pierre Habouzit --- diff --git a/compress.c b/compress.c index 6c801e8..e97fc8d 100644 --- a/compress.c +++ b/compress.c @@ -18,6 +18,7 @@ #include "mx.h" #include "mbox.h" +#include "compress.h" typedef struct { const char *close; /* close-hook command */ @@ -33,7 +34,7 @@ char echo_cmd[HUGE_STRING]; * excl - exclusive lock? * retry - should retry if unable to lock? */ -int mbox_lock_compressed (CONTEXT * ctx, FILE * fp, int excl, int retry) +static int mbox_lock_compressed (CONTEXT * ctx, FILE * fp, int excl, int retry) { int r; @@ -47,7 +48,7 @@ int mbox_lock_compressed (CONTEXT * ctx, FILE * fp, int excl, int retry) return (r); } -void mbox_unlock_compressed (CONTEXT * ctx, FILE * fp) +static void mbox_unlock_compressed (CONTEXT * ctx, FILE * fp) { if (ctx->locked) { fflush (fp); @@ -268,14 +269,14 @@ int mutt_open_read_compressed (CONTEXT * ctx) return (0); } -void restore_path (CONTEXT * ctx) +static void restore_path (CONTEXT * ctx) { p_delete(&ctx->path); ctx->path = ctx->realpath; } /* remove the temporary mailbox */ -void remove_file (CONTEXT * ctx) +static void remove_file (CONTEXT * ctx) { if (ctx->magic == M_MBOX || ctx->magic == M_MMDF) remove (ctx->path); diff --git a/mbox.c b/mbox.c index 9663888..442a406 100644 --- a/mbox.c +++ b/mbox.c @@ -61,7 +61,7 @@ int mbox_lock_mailbox (CONTEXT * ctx, int excl, int retry) return (r); } -void mbox_unlock_mailbox (CONTEXT * ctx) +static void mbox_unlock_mailbox (CONTEXT * ctx) { if (ctx->locked) { fflush (ctx->fp); diff --git a/mbox.h b/mbox.h index e3bc8ca..238d838 100644 --- a/mbox.h +++ b/mbox.h @@ -23,7 +23,6 @@ int mbox_close_mailbox (CONTEXT *); int mbox_lock_mailbox (CONTEXT *, int, int); -void mbox_unlock_mailbox (CONTEXT *); int mbox_check_empty (const char*); int mbox_is_magic (const char*, struct stat*);