Skip to content

Commit

Permalink
FIX: Missing declaration for getdelim
Browse files Browse the repository at this point in the history
  • Loading branch information
matricali committed Jul 28, 2024
1 parent 14c12f0 commit 902cf00
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/getdelim.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 2 additions & 0 deletions src/getline.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@

#if !HAVE_GETLINE

#include "compat.h"

ssize_t
getline(char **buf, size_t *bufsiz, FILE *fp)
{
Expand Down

0 comments on commit 902cf00

Please sign in to comment.