Skip to content
Snippets Groups Projects
Commit 43a78909 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Standard (POSIX) getdelim() returns ssize_t, not long int

parent 6ed4a05f
No related branches found
No related tags found
No related merge requests found
......@@ -310,7 +310,7 @@ static int expandtofit(char **linep, size_t len, size_t *linecapp)
return 0;
}
long getdelim(char **linep, size_t *linecapp, int delimiter, FILE *stream)
ssize_t getdelim(char **linep, size_t *linecapp, int delimiter, FILE *stream)
{
size_t linelen;
int ch;
......
......@@ -163,7 +163,7 @@ DLLEXPORT int xp_lockfile(int fd, off_t pos, off_t len, bool block);
#endif
#if defined(_WIN32 )
DLLEXPORT long getdelim(char **linep, size_t *linecapp, int delimiter, FILE *stream);
DLLEXPORT ssize_t getdelim(char **linep, size_t *linecapp, int delimiter, FILE *stream);
#endif
#if !defined(__BORLANDC__) && defined(__unix__)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment