diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2008-10-15 15:57:20 +0100 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2008-10-15 15:57:20 +0100 |
commit | ee3ce04ad45606d7bae995c704f9651820d61c67 (patch) | |
tree | b428d5fc32c881f564c837fd8cef153b377fb930 /xen/common/kernel.c | |
parent | 39407bed9c03dad5707aab7dd71946e1589c9460 (diff) | |
download | xen-ee3ce04ad45606d7bae995c704f9651820d61c67.tar.gz xen-ee3ce04ad45606d7bae995c704f9651820d61c67.tar.bz2 xen-ee3ce04ad45606d7bae995c704f9651820d61c67.zip |
amd: fix CPUID mask option handling
c/s 18402 added command line options to AMD-specific code duplicating
ones already existing in Intel code. The generic command line parser
didn't support this scenario for integer options, however.
Additionally, the options added were using the same option string for
two different purposes.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
Diffstat (limited to 'xen/common/kernel.c')
-rw-r--r-- | xen/common/kernel.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/xen/common/kernel.c b/xen/common/kernel.c index 277ac21b64..2a88602e51 100644 --- a/xen/common/kernel.c +++ b/xen/common/kernel.c @@ -75,8 +75,7 @@ void cmdline_parse(char *cmdline) strlcpy(param->var, optval, param->len); break; case OPT_UINT: - *(unsigned int *)param->var = - simple_strtol(optval, (const char **)&optval, 0); + *(unsigned int *)param->var = simple_strtol(optval, NULL, 0); break; case OPT_BOOL: case OPT_INVBOOL: |