Information hiding.
[open-adventure.git] / misc.c
diff --git a/misc.c b/misc.c
index 30b3277d0e3a3bda2d0405ef18fb15e01be8cc14..4fa173d91f4d5b9ba457954cf136e408ef562600 100644 (file)
--- a/misc.c
+++ b/misc.c
@@ -10,7 +10,7 @@
 #include "advent.h"
 #include "dungeon.h"
 
-char* xstrdup(const char* s)
+static char* xstrdup(const char* s)
 {
     char* ptr = strdup(s);
     if (ptr == NULL) {
@@ -22,7 +22,7 @@ char* xstrdup(const char* s)
     return (ptr);
 }
 
-void* xmalloc(size_t size)
+static void* xmalloc(size_t size)
 {
     void* ptr = malloc(size);
     if (ptr == NULL) {