From 36dda991898ce621a0b0f7103f763690e73fa0ff Mon Sep 17 00:00:00 2001 From: Aleksey Veresov Date: Sat, 18 Jul 2020 07:56:11 +0300 Subject: Docs were extended, consts were added. --- src/file.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/file.c') diff --git a/src/file.c b/src/file.c index 30b085c..b3727f1 100644 --- a/src/file.c +++ b/src/file.c @@ -4,7 +4,8 @@ #include -void magi_files_add(struct magi_files **files, struct magi_file *newitem) +void magi_files_add(struct magi_files **files, + const struct magi_file *newitem) { struct magi_files *node = malloc(sizeof(*node)); if (node) { @@ -15,7 +16,7 @@ void magi_files_add(struct magi_files **files, struct magi_file *newitem) } const struct magi_file *magi_files_get(const struct magi_files *files, - const char *name) + const char *name) { if (!files || !name) { return 0; -- cgit v1.2.3