From 902cf00f112991b916b2b6f7455a4cc9cc62aa54 Mon Sep 17 00:00:00 2001 From: Jorge Matricali Date: Sun, 28 Jul 2024 17:05:06 -0300 Subject: [PATCH] FIX: Missing declaration for getdelim --- src/getdelim.c | 2 +- src/getline.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/getdelim.c b/src/getdelim.c index 2dfd572..529328d 100644 --- a/src/getdelim.c +++ b/src/getdelim.c @@ -59,7 +59,7 @@ getdelim(char **buf, size_t *bufsiz, int delimiter, FILE *fp) } return -1; } - *ptr++ = c; + *ptr++ = (char)c; if (c == delimiter) { *ptr = '\0'; return ptr - *buf; diff --git a/src/getline.c b/src/getline.c index bf1c693..4b8ff7e 100644 --- a/src/getline.c +++ b/src/getline.c @@ -34,6 +34,8 @@ #if !HAVE_GETLINE +#include "compat.h" + ssize_t getline(char **buf, size_t *bufsiz, FILE *fp) {