25 lines
735 B
Diff
25 lines
735 B
Diff
From f48dd54e458abd3d42b4fb435bf6cda239f79507 Mon Sep 17 00:00:00 2001
|
|
Date: Fri, 1 Dec 2017 19:18:12 +0300
|
|
Subject: [PATCH] fix function prototype
|
|
|
|
---
|
|
tests/gethugepagesizes.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/tests/gethugepagesizes.c b/tests/gethugepagesizes.c
|
|
index 9551b38..62d4b05 100644
|
|
--- a/tests/gethugepagesizes.c
|
|
+++ b/tests/gethugepagesizes.c
|
|
@@ -39,7 +39,7 @@ char fake_meminfo[] = "/tmp/meminfo-XXXXXX";
|
|
#define REAL_SYSFS_DIR "/sys/kernel/mm/hugepages/"
|
|
DIR *(*real_opendir)(const char *name);
|
|
|
|
-int (*real_open)(const char *name, int flags, int mode);
|
|
+int (*real_open)(const char *name, int flags, ...);
|
|
|
|
enum {
|
|
OVERRIDE_OFF, /* Pass-through to real function */
|
|
--
|
|
2.16.4
|
|
|