Browse Source

Fix "Cast from 'const unsigned char *' to 'void *' drops const qualifier"

Kevin Wojniak 9 years ago
parent
commit
70e74a28bf
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/md5.inl

+ 1 - 1
src/md5.inl

@@ -245,7 +245,7 @@ md5_process(md5_state_t *pms, const md5_byte_t *data /*[64]*/)
 				   see
 				   see
 				   https://github.com/bel2125/civetweb/issues/94#issuecomment-98112861
 				   https://github.com/bel2125/civetweb/issues/94#issuecomment-98112861
 				   */
 				   */
-				X = (const md5_word_t *)(void *)data;
+				X = (const md5_word_t *)(const void *)data;
 			} else {
 			} else {
 				/* not aligned */
 				/* not aligned */
 				memcpy(xbuf, data, 64);
 				memcpy(xbuf, data, 64);