[PATCH:xf86-input-keyboard] sun_kbd: Replace deprecated xfree/xcalloc with free & calloc

Alan Coopersmith alan.coopersmith at oracle.com
Thu Dec 23 19:22:47 PST 2010


On 12/23/10 04:20 PM, Julien Cristau wrote:
> can't this whole thing be replaced with
> 
>         kbdPath = xf86SetStrOption(pInfo->options, "Device", "/dev/kbd")
> 
> ?
> 
> AFAICT it should handle a NULL pInfo->options fine (returning the
> default).  Not tested though.

Yes it appears so.   Revised patch attached, but won't have a chance to
test it until next week.

-- 
	-Alan Coopersmith-        alan.coopersmith at oracle.com
	 Oracle Solaris Platform Engineering: X Window System

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-sun_kbd-Replace-deprecated-xfree-xcalloc-with-free-c.patch
Type: application/mbox
Size: 2094 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg-devel/attachments/20101223/2cedba9b/attachment.bin>


More information about the xorg-devel mailing list