From 6edffeac3d0f137437eeea31d2f362874ae34543 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Mon, 6 Jun 2011 10:51:52 +0000 Subject: [PATCH] Reacted on warnings of gcc about mixed sign comparison --- libburn/trunk/cdrskin/cdrskin_timestamp.h | 2 +- libburn/trunk/libburn/sg-solaris.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libburn/trunk/cdrskin/cdrskin_timestamp.h b/libburn/trunk/cdrskin/cdrskin_timestamp.h index 772a1864..196dd30b 100644 --- a/libburn/trunk/cdrskin/cdrskin_timestamp.h +++ b/libburn/trunk/cdrskin/cdrskin_timestamp.h @@ -1 +1 @@ -#define Cdrskin_timestamP "2011.06.06.104404" +#define Cdrskin_timestamP "2011.06.06.105052" diff --git a/libburn/trunk/libburn/sg-solaris.c b/libburn/trunk/libburn/sg-solaris.c index d232a002..261b7342 100644 --- a/libburn/trunk/libburn/sg-solaris.c +++ b/libburn/trunk/libburn/sg-solaris.c @@ -273,7 +273,7 @@ static int next_enum_cXtYdZs2(burn_drive_enumerator_t *idx, } break; } - if (strlen(entry->d_name) > volpath_size - 11) + if (strlen(entry->d_name) > (size_t) (volpath_size - 11)) continue; ret = decode_btl_solaris(entry->d_name, &busno, &tgtno, &lunno, 0); @@ -294,7 +294,7 @@ static int next_enum_cXtYdZs2(burn_drive_enumerator_t *idx, continue; if (cinfo.dki_ctype != DKC_CDROM) continue; - if (adr_size <= strlen(volpath)) + if (adr_size <= (int) strlen(volpath)) {ret = -1; goto ex;} strcpy(adr, volpath); {ret = 1; goto ex;}