login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
openbsd-tech
»
2010
»
September
»
24
Re: hash.h diff
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From: Kenneth R Westerback
Subject:
Re: hash.h diff
Date: Friday, September 24, 2010 - 6:14 am
On Fri, Sep 24, 2010 at 02:25:54PM +0200, Claudio Jeker wrote:
quoted text
> When compiling ospfd I get following warning: > /usr/include/sys/hash.h: In function 'hash32_stre': > /usr/include/sys/hash.h:104: warning: cast discards qualifiers from > pointer target type > > The following diff seems to fix this. OK? > -- > :wq Claudio
ok krw@ .... Ken
quoted text
> > Index: sys/hash.h > =================================================================== > RCS file: /cvs/src/sys/sys/hash.h,v > retrieving revision 1.4 > diff -u -p -r1.4 hash.h > --- sys/hash.h 25 May 2004 18:37:23 -0000 1.4 > +++ sys/hash.h 24 Sep 2010 12:22:37 -0000 > @@ -93,7 +93,7 @@ hash32_strn(const void *buf, size_t len, > * namei() hashing of path name parts. > */ > static __inline uint32_t > -hash32_stre(const void *buf, int end, char **ep, uint32_t hash) > +hash32_stre(const void *buf, int end, const char **ep, uint32_t hash) > { > const unsigned char *p = buf; > > @@ -101,7 +101,7 @@ hash32_stre(const void *buf, int end, ch > hash = HASHSTEP(hash, *p++); > > if (ep) > - *ep = (char *)p; > + *ep = p; > > return hash; > } > @@ -112,7 +112,8 @@ hash32_stre(const void *buf, int end, ch > * as a helper for the namei() hashing of path name parts. > */ > static __inline uint32_t > -hash32_strne(const void *buf, size_t len, int end, char **ep, uint32_t hash) > +hash32_strne(const void *buf, size_t len, int end, const char **ep, > + uint32_t hash) > { > const unsigned char *p = buf; > > @@ -120,7 +121,7 @@ hash32_strne(const void *buf, size_t len > hash = HASHSTEP(hash, *p++); > > if (ep) > - *ep = (char *)p; > + *ep = p; > > return hash; > }
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
Messages in current thread:
hash.h diff
, Claudio Jeker
, (Fri Sep 24, 5:25 am)
Re: hash.h diff
, Kenneth R Westerback
, (Fri Sep 24, 6:14 am)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Ken Chen
[patch] sched: fix inconsistency when redistribute per-cpu tg->cfs_rq shares.
Ingo Molnar
Re: [PATCH v3] x86: merge the simple bitops and move them to bitops.h
Jan Engelhardt
Re: [PATCH] Allow Kconfig to set default mmap_min_addr protection
Dmitry Torokhov
Re: [2.6 patch] input/serio/hp_sdc.c section fix
Rafael J. Wysocki
[Bug #16380] Loop devices act strangely in 2.6.35
git
:
Steven Grimm
Using git as a general backup mechanism (was Re: Using GIT to store /etc)
Jeff King
Re: [PATCH] git-reset: allow --soft in a bare repo
Johannes Sixt
Re: [PATCH 01/14] msvc: Fix compilation errors in compat/win32/sys/poll.c
Johannes Schindelin
Re: [PATCH] Uninstall rule for top level Makefile
Shawn O. Pearce
Re: [PATCH v2] Speed up bash completion loading
git-commits-head
:
Linux Kernel Mailing List
cgroups: clean up cgroup_pidlist_find() a bit
Linux Kernel Mailing List
sony-laptop: Add support for extended hotkeys
Linux Kernel Mailing List
IB/core: Add support for masked atomic operations
Linux Kernel Mailing List
V4L/DVB (8939): cx18: fix sparse warnings
Linux Kernel Mailing List
ipv6 mcast: Check address family of gf_group in getsockopt(MS_FILTER).
linux-netdev
:
Inaky Perez-Gonzalez
[PATCH 40/40] wimax/i2400m: add CREDITS and MAINTAINERS entries
Karsten Keil
[mISDN PATCH v2 05/19] Reduce stack size in dsp_cmx_send()
linux
Re: 2.6.23-rc8 network problem. Mem leak? ip1000a?
David Miller
Re: tun: Use netif_receive_skb instead of netif_rx
David Miller
Re: [net-next PATCH v2] llc enhancements
freebsd-current
:
Matthew Fleming
Re: [RFC] Outline of USB process integration in the kernel taskqueue system
illoai@gmail.com
Re: OT: 2d password
Hartmut Brandt
Re: problem with nss_ldap
Andrew Reilly
Re: FreeBSD's problems as seen by the BSDForen.de community
Max Laier
Re: Upcoming ABI Breakage in RELENG_7
Colocation donated by:
Syndicate