Fix: remove unused align.h header
[lttng-ust.git] / libringbuffer / smp.c
index 8b66b9e83fd08b88c6b70798000781898af1a562..b6c2962b9711b0979beeea5f2bfcc0f9dff14272 100644 (file)
@@ -206,11 +206,10 @@ error:
 void _get_num_possible_cpus(void)
 {
        int ret;
-       int buf_len = sysconf(_SC_PAGE_SIZE);
-       char buf[buf_len];
+       char buf[LTTNG_UST_CPUMASK_SIZE];
 
        /* Get the possible cpu mask from sysfs, fallback to sysconf. */
-       ret = get_possible_cpu_mask_from_sysfs((char *) &buf, buf_len);
+       ret = get_possible_cpu_mask_from_sysfs((char *) &buf, LTTNG_UST_CPUMASK_SIZE);
        if (ret <= 0)
                goto fallback;
 
This page took 0.023348 seconds and 4 git commands to generate.