summaryrefslogtreecommitdiff
path: root/filesystem.h
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-01-01 22:56:36 -0500
committerpommicket <pommicket@gmail.com>2023-01-01 22:56:36 -0500
commita3971fd612813c6544dbe63cb3d7e5d9c0b7b778 (patch)
tree4c89464fca8366301b121ef597dfee826d37a8bd /filesystem.h
parente06b040fad63fe729de60781658778a0b008ca16 (diff)
move functions from io.c to session.c
Diffstat (limited to 'filesystem.h')
-rw-r--r--filesystem.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/filesystem.h b/filesystem.h
index 0c18494..03ae04a 100644
--- a/filesystem.h
+++ b/filesystem.h
@@ -40,8 +40,8 @@ int fs_mkdir(char const *path);
// 0 if buf is too short to hold the cwd
// -1 if we can't get the cwd for whatever reason.
int fs_get_cwd(char *buf, size_t buflen);
-
-void fs_dir_entries_free(FsDirectoryEntry **entries) {
+// free the entries generated by fs_list_directory.s
+static void fs_dir_entries_free(FsDirectoryEntry **entries) {
for (int i = 0; entries[i]; ++i)
free(entries[i]);
free(entries);