From 0d853acd341bdd339055e5a7243d646673e08926 Mon Sep 17 00:00:00 2001 From: Christos Zoulas Date: Fri, 16 Sep 2011 21:04:59 +0000 Subject: [PATCH] fix warnings --- src/apprentice.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/apprentice.c b/src/apprentice.c index 2a554c6d..c773a942 100644 --- a/src/apprentice.c +++ b/src/apprentice.c @@ -32,7 +32,7 @@ #include "file.h" #ifndef lint -FILE_RCSID("@(#)$File: apprentice.c,v 1.169 2011/05/10 17:08:13 christos Exp $") +FILE_RCSID("@(#)$File: apprentice.c,v 1.170 2011/06/10 09:23:28 christos Exp $") #endif /* lint */ #include "magic.h" @@ -1451,8 +1451,8 @@ parse(struct magic_set *ms, struct magic_entry **mentryp, uint32_t *nmentryp, goto bad; m->str_flags |= PSTRING_LENGTH_INCLUDES_ITSELF; break; - bad: default: + bad: if (ms->flags & MAGIC_CHECK) file_magwarn(ms, "string extension `%c' " @@ -2085,7 +2085,7 @@ out: *p = '\0'; m->vallen = CAST(unsigned char, (p - origp)); if (m->type == FILE_PSTRING) - m->vallen += file_pstring_length_size(m); + m->vallen += (unsigned char)file_pstring_length_size(m); return s; } -- 2.40.0