Date: Sun, 31 Dec 2006 14:09:55 -0800 From: perryh@pluto.rain.com To: dmw@unete.cl Cc: freebsd-hackers@freebsd.org Subject: Re: how to deal with const Message-ID: <45983533.nD9Vm0IfHU3DbCZC%perryh@pluto.rain.com> In-Reply-To: <200612310937.55142.dmw@unete.cl> References: <45975e1c.zZgcyHPeHeBwZNlg%perryh@pluto.rain.com> <200612310937.55142.dmw@unete.cl>
next in thread | previous in thread | raw e-mail | index | archive | help
> If you need strstr(3) in your project is allready defined > in libkern. The implementation is identical, but using the > __DECONST macro. > > Take a look in /usr/src/sys/libkern/strstr.c for the function > definition and /usr/src/sys/geom/label/g_label.c for usage. > > The function prototype is defined in sys/libkern.h There's no strstr.c in my (6.1) libkern, but sys/cdefs.h does provide __DECONST and it certainly looks like the intended solution. Thanks for the pointer.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?45983533.nD9Vm0IfHU3DbCZC%perryh>