diff options
Diffstat (limited to 'media-sound/awesfx/files/awesfx-0.5.1c-getline.patch')
-rw-r--r-- | media-sound/awesfx/files/awesfx-0.5.1c-getline.patch | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/media-sound/awesfx/files/awesfx-0.5.1c-getline.patch b/media-sound/awesfx/files/awesfx-0.5.1c-getline.patch new file mode 100644 index 000000000000..cdc781b9755f --- /dev/null +++ b/media-sound/awesfx/files/awesfx-0.5.1c-getline.patch @@ -0,0 +1,53 @@ +--- setfx.c 2007-08-29 18:00:23.000000000 +0200 ++++ setfx.c 2009-05-19 22:19:56.140092119 +0200 +@@ -37,7 +37,7 @@ + /*----------------------------------------------------------------*/ + + static void usage(void); +-static int getline(FILE *fp); ++static int awesfx_getline(FILE *fp); + static int nextline(FILE *fp); + static char *gettok(FILE *fp); + static char *divtok(char *src, char *divs, int only_one); +@@ -126,7 +126,7 @@ + } + + curline = 0; +- if (!getline(fp)) ++ if (!awesfx_getline(fp)) + return 0; + + seq_init(seq_devname, seq_devidx); +@@ -370,7 +370,7 @@ + * read a line and parse tokens + *----------------------------------------------------------------*/ + +-static int getline(FILE *fp) ++static int awesfx_getline(FILE *fp) + { + char *p; + curline++; +@@ -393,12 +393,12 @@ + { + if (connected) { + do { +- if (! getline(fp)) ++ if (! awesfx_getline(fp)) + return FALSE; + } while (connected); + return TRUE; + } else { +- return getline(fp); ++ return awesfx_getline(fp); + } + } + +@@ -415,7 +415,7 @@ + tok = divtok(NULL, " \t\r\n", FALSE); + while (tok == NULL || *tok == 0) { + if (! connected) return NULL; +- if (! getline(fp)) return NULL; ++ if (! awesfx_getline(fp)) return NULL; + tok = divtok(line, " \t\r\n", FALSE); + } + return tok; |