瀏覽代碼

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 年之前
父節點
當前提交
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;