chiark / gitweb /
udev: avoid magic constants in kernel-cmdline parsers
authorDavid Herrmann <dh.herrmann@gmail.com>
Wed, 5 Nov 2014 11:56:49 +0000 (12:56 +0100)
committerDavid Herrmann <dh.herrmann@gmail.com>
Wed, 5 Nov 2014 11:58:10 +0000 (12:58 +0100)
commitcfe2061add5479710f6597899d632e64c54e62ef
tree91121679dff012d525f8cdbfce0d5570787bb406
parentf671774f52838d35d78e62ddcb781b5b65b3373f
udev: avoid magic constants in kernel-cmdline parsers

Lets recognize the fact that startswith() returns a pointer to the tail on
success. Use it instead of hard-coding string-lengths as magic constants.
src/udev/udevd.c