commit | 74e05e01e2de46dc817d747c646421125e59d6b1 | [log] [tgz] |
---|---|---|
author | Jan Beulich <jbeulich@suse.com> | Wed Apr 19 11:42:51 2023 +0200 |
committer | Jan Beulich <jbeulich@suse.com> | Wed Apr 19 11:42:51 2023 +0200 |
tree | 4833de3955f026087efaa167b3786c1ac5726e75 | |
parent | e185530b58d0bb805531455f5b65524ea7e762c6 [diff] |
x86: parse_real_register() does not alter the parsed string Follow the model of strtol() et al - input string is const-qualified to signal that the string isn't altered, but the returned "end" pointer is not const-qualified, requiring const to be cast away (which generally is a bad idea, but the alternative would be more convoluted code).