Prevent collision with getline(3)

This commit is contained in:
Baptiste Daroussin 2016-05-22 16:15:38 +00:00
parent 286295dfd1
commit f7f6fbe43d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=415638
2 changed files with 36 additions and 0 deletions

View File

@ -0,0 +1,18 @@
--- cmp3common.c.orig 2001-06-13 20:13:13 UTC
+++ cmp3common.c
@@ -102,7 +102,7 @@ int Strncmp(const char *str1, /* Firs
return(i);
}
-int getline(char *var, /* Buffer to copy line into */
+int get_line(char *var, /* Buffer to copy line into */
int maxbuf, /* MAX to send to fgets */
FILE *input /* File descriptor to get line from */)
{
@@ -142,4 +142,4 @@ void *Malloc(size_t size)
}
-/* EOF */
\ No newline at end of file
+/* EOF */

View File

@ -0,0 +1,18 @@
--- cmp3funcs.h.orig 2001-06-13 20:13:27 UTC
+++ cmp3funcs.h
@@ -64,7 +64,7 @@ extern Sigfunc *Signal(int signo, Sigfun
extern char *Strdup(const char *string);
extern int Strcmp(const char *str1, const char *str2);
extern int Strncmp(const char *str1, const char *str2, int num);
-extern int getline(char *var, int maxbuf, FILE *input);
+extern int get_line(char *var, int maxbuf, FILE *input);
extern void *Malloc(size_t size);
@@ -86,4 +86,4 @@ extern void voldown();
/* cmp3id3.c */
extern int readid3(id3info_t *songinfo, char *songfilename);
-/* EOF */
\ No newline at end of file
+/* EOF */