Просмотр исходного кода

jhash.h (jhash2): make first parameter const

* include/corosync/jhash.h (jhash2): const.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2017 fd59a12c-fef9-0310-b244-a6a79926bd2f
Jim Meyering 17 лет назад
Родитель
Сommit
f571a12d9b
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      include/corosync/jhash.h

+ 1 - 1
include/corosync/jhash.h

@@ -87,7 +87,7 @@ static inline u32 jhash(const void *key, u32 length, u32 initval)
 /* A special optimized version that handles 1 or more of u32s.
  * The length parameter here is the number of u32s in the key.
  */
-static inline u32 jhash2(u32 *k, u32 length, u32 initval)
+static inline u32 jhash2(const u32 *k, u32 length, u32 initval)
 {
 	u32 a, b, c, len;