summaryrefslogtreecommitdiffstats
path: root/src/types.c
diff options
context:
space:
mode:
authorgramanas <anastasis.gramm2@gmail.com>2022-09-06 10:42:48 +0300
committergramanas <anastasis.gramm2@gmail.com>2022-09-06 10:42:48 +0300
commit433ce0f6795a4db89921b26274dd0b18fcccbb21 (patch)
tree8fb8f7d8a8d62b9530a525a039dc8dccf9647418 /src/types.c
parentf946969da0c409d35672dfd2749f1b66e96ee8a4 (diff)
downloadfoodtools-433ce0f6795a4db89921b26274dd0b18fcccbb21.tar.gz
foodtools-433ce0f6795a4db89921b26274dd0b18fcccbb21.tar.bz2
foodtools-433ce0f6795a4db89921b26274dd0b18fcccbb21.zip
Small parser refactor
Diffstat (limited to 'src/types.c')
-rw-r--r--src/types.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/types.c b/src/types.c
index 9fbb59b..5ce0203 100644
--- a/src/types.c
+++ b/src/types.c
@@ -163,7 +163,7 @@ void
tojson(recipe * r)
{
printf("{\"filename\":\"%s\",", r->filename);
- printf("\"dirname\":\"%s\",", r->path);
+ printf("\"path\":\"%s\",", r->path);
printf("\"title\":\"%s\",", r->title);
printf("\"n\":\"%d\",", r->n);
printf("\"sha1_short\":\"%.*s\",", 8, r->sha1);