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 <dotanba@gmail.com>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@585 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Vladislav Bolkhovitin
2008-11-26 19:03:41 +00:00
parent 9183709081
commit c9bdcb7c70

View File

@@ -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)
{