CVSROOT:        /cvs
Module name:    src
Changes by:     t...@cvs.openbsd.org    2015/02/14 18:56:16

Modified files:
        sbin/wsconsctl : keysym.c 

Log message:
These functions turned up in my grep for bcmp. There are already perfectly
good cmp functions written for qsort, but then different versions were written
which (ab)use the fact that bsearch doesn't strictly require the key type to
be the same as the element type. Nevertheless, I think it's clearer and
cleaner to create a complete key struct and search with that. As a bonus, we
don't need two different compare functions just to compare with two different
encoding values.
ok millert

Reply via email to