summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib.c2
-rw-r--r--src/lib.h4
-rw-r--r--src/random.c1
-rw-r--r--src/util.c5
-rw-r--r--src/util.h3
5 files changed, 11 insertions, 4 deletions
diff --git a/src/lib.c b/src/lib.c
index 02c0f92..8d06ee0 100644
--- a/src/lib.c
+++ b/src/lib.c
@@ -6,6 +6,8 @@
#include "logerr.h"
+#include "lib.h"
+
int
pindaiba_main(int argc, char *argv[]) {
diff --git a/src/lib.h b/src/lib.h
index 196e339..9ace170 100644
--- a/src/lib.h
+++ b/src/lib.h
@@ -1,5 +1,5 @@
-const size_t
-NULL_TERMINATOR = sizeof((char)'\0');
+extern const size_t
+NULL_TERMINATOR;
int
pindaiba_main(int argc, char *argv[]);
diff --git a/src/random.c b/src/random.c
index 1ed56ae..8c3eda3 100644
--- a/src/random.c
+++ b/src/random.c
@@ -8,6 +8,7 @@
#include <string.h>
#include "logerr.h"
+
#include "random.h"
diff --git a/src/util.c b/src/util.c
index 3d56c14..65269ac 100644
--- a/src/util.c
+++ b/src/util.c
@@ -5,11 +5,12 @@
#include <stdlib.h>
#include <string.h>
-#include "util.h"
#include "logerr.h"
+#include "util.h"
+
-static const size_t
+const size_t
NULL_TERMINATOR = sizeof((char)'\0');
int
diff --git a/src/util.h b/src/util.h
index 8465790..8574b35 100644
--- a/src/util.h
+++ b/src/util.h
@@ -1,2 +1,5 @@
+extern const size_t
+NULL_TERMINATOR;
+
int
slurp(const char *const filename, char **out);