(mc_search__hex_translate_to_regex): remove explicit handling of 0x prefixes.
commiteff4d74743a577fe35736b3dd1a3a90404a1e25e
authorMooffie <mooffie@gmail.com>
Wed, 2 Nov 2016 20:03:57 +0000 (2 22:03 +0200)
committerAndrew Borodin <aborodin@vmail.ru>
Sun, 4 Dec 2016 06:55:27 +0000 (4 09:55 +0300)
treef5a99a24ef41ee8b268e0f8588b146280f4214a8
parentf96b11cf666f92501ac6e04d6524ca4d1b900e22
(mc_search__hex_translate_to_regex): remove explicit handling of 0x prefixes.

scanf("%x") knows to eat up this prefix[1][2], so we don't need to do this
ourselves.

[1] K&R's "The C Programming Language" documents "%x" as "hexadecimal
    integer (with or without leading 0x or 0X)"
[2] http://pubs.opengroup.org/onlinepubs/9699919799/functions/scanf.html

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
lib/search/hex.c