fix missing parameter list in system_page_size() default tip

Fri, 28 Nov 2025 15:23:40 +0100

author
Mike Becker <universe@uap-core.de>
date
Fri, 28 Nov 2025 15:23:40 +0100
changeset 1520
03d703c3cfe9
parent 1519
0cc05a5c053d

fix missing parameter list in system_page_size()

src/buffer.c file | annotate | diff | comparison | revisions
tests/test_buffer.c file | annotate | diff | comparison | revisions
--- a/src/buffer.c	Fri Nov 28 15:16:19 2025 +0100
+++ b/src/buffer.c	Fri Nov 28 15:23:40 2025 +0100
@@ -35,7 +35,7 @@
 #ifdef _WIN32
 #include <Windows.h>
 #include <sysinfoapi.h>
-static unsigned long system_page_size() {
+static unsigned long system_page_size(void) {
     static unsigned long ps = 0;
     if (ps == 0) {
         SYSTEM_INFO sysinfo;
@@ -46,7 +46,7 @@
 }
 #else
 #include <unistd.h>
-static unsigned long system_page_size() {
+static unsigned long system_page_size(void) {
     static unsigned long ps = 0;
     if (ps == 0) {
         long sc = sysconf(_SC_PAGESIZE);
--- a/tests/test_buffer.c	Fri Nov 28 15:16:19 2025 +0100
+++ b/tests/test_buffer.c	Fri Nov 28 15:23:40 2025 +0100
@@ -35,7 +35,7 @@
 #ifdef _WIN32
 #include <Windows.h>
 #include <sysinfoapi.h>
-static unsigned long system_page_size() {
+static unsigned long system_page_size(void) {
     static unsigned long ps = 0;
     if (ps == 0) {
         SYSTEM_INFO sysinfo;
@@ -46,7 +46,7 @@
 }
 #else
 #include <unistd.h>
-static unsigned long system_page_size() {
+static unsigned long system_page_size(void) {
     static unsigned long ps = 0;
     if (ps == 0) {
         long sc = sysconf(_SC_PAGESIZE);

mercurial