Cleanup: always use sysconf to get the page size
[lttng-tools.git] / src / bin / lttng-sessiond / main.c
index 868f9a4a9261cff9e68458d2e0c33ba9aa1f12fa..4effb3ce9f4cc703ff8c8e498b59ee63933e8939 100644 (file)
@@ -1472,9 +1472,9 @@ int main(int argc, char **argv)
                goto exit_set_signal_handler;
        }
 
-       the_page_size = sysconf(_SC_PAGESIZE);
+       the_page_size = sysconf(_SC_PAGE_SIZE);
        if (the_page_size < 0) {
-               PERROR("sysconf _SC_PAGESIZE");
+               PERROR("sysconf _SC_PAGE_SIZE");
                the_page_size = LONG_MAX;
                WARN("Fallback page size to %ld", the_page_size);
        }
This page took 0.023169 seconds and 4 git commands to generate.