aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSlaren <2141330+slaren@users.noreply.github.com>2023-03-29 06:18:18 +0200
committerJustine Tunney <jtunney@gmail.com>2023-03-30 12:28:25 -0700
commitd68c5dc4356c8f49e933df210f2ceca5002a8118 (patch)
treecf4df969ec140d9dca19646b390bfdce3200d1df
parent64bde3ffd4aef799acb790a3eedddbd0a0612108 (diff)
Make mmap_file static
-rw-r--r--llama.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llama.cpp b/llama.cpp
index 1adeee5..096735c 100644
--- a/llama.cpp
+++ b/llama.cpp
@@ -296,7 +296,7 @@ struct llama_context_params llama_context_default_params() {
// model loading
//
-void * mmap_file(const char* fname) {
+static void * mmap_file(const char* fname) {
#if defined(MAP_FAILED)
// POSIX mmap
int fd = open(fname, O_RDONLY);