aboutsummaryrefslogtreecommitdiff
path: root/src/gnunet_chat_util.c
diff options
context:
space:
mode:
authorTheJackiMonster <thejackimonster@gmail.com>2021-12-18 22:32:59 +0100
committerTheJackiMonster <thejackimonster@gmail.com>2021-12-18 22:32:59 +0100
commit6bbc30ef71cf23267937a73e34e185410ed73a10 (patch)
treefc562e55a9a46f5de081be70a6a78e6c2aabb482 /src/gnunet_chat_util.c
parentea39819757f6888ed983d0c327286e6a7bac8523 (diff)
downloadlibgnunetchat-6bbc30ef71cf23267937a73e34e185410ed73a10.tar.gz
libgnunetchat-6bbc30ef71cf23267937a73e34e185410ed73a10.zip
Fixed problems loading configurations but still inconsistencies
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
Diffstat (limited to 'src/gnunet_chat_util.c')
-rw-r--r--src/gnunet_chat_util.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/gnunet_chat_util.c b/src/gnunet_chat_util.c
index 810c4f3..f8d98f2 100644
--- a/src/gnunet_chat_util.c
+++ b/src/gnunet_chat_util.c
@@ -185,6 +185,24 @@ util_decrypt_file (const char *filename,
185} 185}
186 186
187int 187int
188util_get_dirname (const char *directory,
189 const char *subdir,
190 char **filename)
191{
192 GNUNET_assert((filename) &&
193 (directory) &&
194 (subdir));
195
196 return GNUNET_asprintf (
197 filename,
198 "%s%c%s",
199 directory,
200 DIR_SEPARATOR,
201 subdir
202 );
203}
204
205int
188util_get_filename (const char *directory, 206util_get_filename (const char *directory,
189 const char *subdir, 207 const char *subdir,
190 const struct GNUNET_HashCode *hash, 208 const struct GNUNET_HashCode *hash,