summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2014-07-08 14:09:55 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2014-07-08 14:09:55 +0200
commit999a433c3d8bbeb528d27cc119cf77d7e43e7a73 (patch)
tree419c0f365c602661e375a4989c53f962440b480b /lib
parent620b71314f2963aba04f1cfdc29675fc9e3f32c9 (diff)
downloadgnutls-999a433c3d8bbeb528d27cc119cf77d7e43e7a73.tar.gz
Allow specifying GNUTLS_CPUID_OVERRIDE in either hex or decimal.
Diffstat (limited to 'lib')
-rw-r--r--lib/accelerated/x86/x86-common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/accelerated/x86/x86-common.c b/lib/accelerated/x86/x86-common.c
index b8b8cf21ea..3e9f13c86f 100644
--- a/lib/accelerated/x86/x86-common.c
+++ b/lib/accelerated/x86/x86-common.c
@@ -570,7 +570,7 @@ void register_x86_crypto(void)
char *p;
p = getenv("GNUTLS_CPUID_OVERRIDE");
if (p) {
- capabilities = atoi(p);
+ capabilities = strtol(p, NULL, 0);
}
register_x86_intel_crypto(capabilities);