From c9bdcb7c705aa277d334e033cd50a9ab52ba6a79 Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Wed, 26 Nov 2008 19:03:41 +0000 Subject: [PATCH] Fixing compilation warning when compiling the code with -Wcast-qual. The casting from (const uint8_t *) to (uint8_t *) is not really necessary. Signed-off-by: Dotan Barak git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@585 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/include/scst_const.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scst/include/scst_const.h b/scst/include/scst_const.h index 87ce9f24c..2c8447997 100644 --- a/scst/include/scst_const.h +++ b/scst/include/scst_const.h @@ -115,10 +115,10 @@ enum scst_cmd_queue_type { #define SCST_LOAD_SENSE(key_asc_ascq) key_asc_ascq #define SCST_SENSE_VALID(sense) ((sense != NULL) && \ - ((((uint8_t *)(sense))[0] & 0x70) == 0x70)) + ((((const uint8_t *)(sense))[0] & 0x70) == 0x70)) #define SCST_NO_SENSE(sense) ((sense != NULL) && \ - (((uint8_t *)(sense))[2] == 0)) + (((const uint8_t *)(sense))[2] == 0)) static inline int scst_is_ua_sense(const uint8_t *sense) {