about summary refs log tree commit diff
path: root/chat.h
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-08-21 16:47:54 -0400
committerJune McEnroe <june@causal.agency>2020-08-21 16:49:10 -0400
commit8190d76086e57a4b07e7ed39af3748a470f53b89 (patch)
tree36f030d39046cea3a6575b69d7a8721bc71dccae /chat.h
parentDocument how cert/priv are searched for (diff)
downloadcatgirl-8190d76086e57a4b07e7ed39af3748a470f53b89.tar.gz
catgirl-8190d76086e57a4b07e7ed39af3748a470f53b89.zip
Use a static buffer for base directory paths
Diffstat (limited to '')
-rw-r--r--chat.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/chat.h b/chat.h
index 6b4de93..1ac37b9 100644
--- a/chat.h
+++ b/chat.h
@@ -294,12 +294,8 @@ void logFormat(uint id, const time_t *time, const char *format, ...)
 	__attribute__((format(printf, 3, 4)));
 void logClose(void);
 
-const char *configPath(
-	char *buf, size_t cap, const char **dirs, const char *path
-);
-const char *dataPath(
-	char *buf, size_t cap, const char **dirs, const char *path
-);
+const char *configPath(const char **dirs, const char *path);
+const char *dataPath(const char **dirs, const char *path);
 FILE *configOpen(const char *path, const char *mode);
 FILE *dataOpen(const char *path, const char *mode);
 void dataMkdir(const char *path);