projects
/
open-adventure.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
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"
#include "advent.h"
#include "dungeon.h"
-char* xstrdup(const char* s)
+
static
char* xstrdup(const char* s)
{
char* ptr = strdup(s);
if (ptr == NULL) {
{
char* ptr = strdup(s);
if (ptr == NULL) {
@@
-22,7
+22,7
@@
char* xstrdup(const char* s)
return (ptr);
}
return (ptr);
}
-void* xmalloc(size_t size)
+
static
void* xmalloc(size_t size)
{
void* ptr = malloc(size);
if (ptr == NULL) {
{
void* ptr = malloc(size);
if (ptr == NULL) {