From 7a71ecec5189c821b7c2389b61ffd0da449031c1 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Wed, 15 Nov 2006 16:17:58 +0100 Subject: [PATCH] Fix compilation warnings un buffy.c and command.c - Tag unused attribute - Use signed int Signed-off-by: Julien Danjou Signed-off-by: Pierre Habouzit --- buffy.c | 8 ++++---- compress.c | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/buffy.c b/buffy.c index 4a30783..fa531aa 100644 --- a/buffy.c +++ b/buffy.c @@ -172,7 +172,7 @@ static void buffy_free (BUFFY** p) { } int buffy_lookup (const char* path) { - unsigned int i = 0; + int i = 0; if (list_empty(Incoming) || !path || !*path) return (-1); for (i = 0; i < Incoming->length; i++) { @@ -269,7 +269,7 @@ int buffy_check (int force) struct stat contex_sb; time_t now, last1; CONTEXT *ctx; - unsigned int i = 0; + int i = 0; int local = 0, count = 0; time_t last2; @@ -492,7 +492,7 @@ int buffy_list (void) int pos; int first; int have_unnotified = BuffyNotify; - unsigned int i = 0; + int i = 0; pos = 0; first = 1; @@ -556,7 +556,7 @@ int buffy_notify (void) */ void buffy_next (char *s, size_t slen) { - unsigned int l = 0; + int l = 0; int c = 0, i = 0; if (list_empty(Incoming)) diff --git a/compress.c b/compress.c index 21b3c14..72ad440 100644 --- a/compress.c +++ b/compress.c @@ -154,10 +154,10 @@ static void store_size (CONTEXT * ctx) static const char *compresshook_format_str (char *dest, ssize_t destlen, char op, const char *src, const char *fmt, - const char *ifstring, - const char *elsestring, + const char *ifstring __attribute__ ((unused)), + const char *elsestring __attribute__ ((unused)), unsigned long data, - format_flag flags) + format_flag flags __attribute__ ((unused))) { char tmp[SHORT_STRING]; -- 2.20.1