tiny...

>From 876ecc25f720bc4f74d72c34d4854b13721e67f6 Mon Sep 17 00:00:00 2001
From: Jim Meyering <[email protected]>
Date: Mon, 6 Apr 2009 18:30:10 +0200
Subject: [PATCH] jhash.h (jhash2): make first parameter const

* include/corosync/jhash.h (jhash2): const.
---
 include/corosync/jhash.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/corosync/jhash.h b/include/corosync/jhash.h
index cf76876..c5b4ed5 100644
--- a/include/corosync/jhash.h
+++ b/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;

--
1.6.2.rc1.285.gc5f54
_______________________________________________
Openais mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/openais

Reply via email to