diff options
author | TheJackiMonster <thejackimonster@gmail.com> | 2021-12-18 22:32:59 +0100 |
---|---|---|
committer | TheJackiMonster <thejackimonster@gmail.com> | 2021-12-18 22:32:59 +0100 |
commit | 6bbc30ef71cf23267937a73e34e185410ed73a10 (patch) | |
tree | fc562e55a9a46f5de081be70a6a78e6c2aabb482 /src/gnunet_chat_util.c | |
parent | ea39819757f6888ed983d0c327286e6a7bac8523 (diff) | |
download | libgnunetchat-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.c | 18 |
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 | ||
187 | int | 187 | int |
188 | util_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 | |||
205 | int | ||
188 | util_get_filename (const char *directory, | 206 | util_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, |