pkgsrc/audio/cmp3/patches/patch-af

54 lines
1.9 KiB
Text

$NetBSD: patch-af,v 1.2 2010/10/24 11:28:42 plunky Exp $
--- cmp3listfiles.c.orig 2001-06-13 20:13:16.000000000 +0000
+++ cmp3listfiles.c
@@ -7,7 +7,7 @@
#include <stdio.h>
#include <string.h>
-#include"cmp3funcs.h"
+#include "cmp3funcs.h"
typedef struct {
char dirLetter;
@@ -121,7 +121,7 @@ void readm3u(FILE *infile)
{
char buffer[MAX_FULL];
- while (getline(buffer, MAX_FULL, infile) == 1) {
+ while (cmp3_getline(buffer, MAX_FULL, infile) == 1) {
if (buffer[0] == '#')
continue;
if (doConversions(buffer) == 1)
@@ -134,7 +134,7 @@ void readpls(FILE *infile)
char buffer[MAX_FULL],
*filename;
- while (getline(buffer, MAX_FULL, infile) == 1) {
+ while (cmp3_getline(buffer, MAX_FULL, infile) == 1) {
if ((buffer[0] == '[') || (buffer[0] == '#'))
continue;
if (!Strncmp(buffer, "file", 4)) {
@@ -269,15 +269,14 @@ void writelist(char *filepath)
if (outfile == NULL)
/* XXX - alert person */
return;
- fprintf(outfile,
-"##############################################################################
-# Dumped Cmp3 playlist ass file
-#
-# Addable features (on individual lines):
-# %%[command] - executes commands initially using system() call
-# @ - randomizes this playlist at load time
-# $ - turns on repeat mode at load time
-#\n\n");
+fprintf(outfile, "##############################################################################\n");
+fprintf(outfile, "# Dumped Cmp3 playlist ass file\n");
+fprintf(outfile, "#\n");
+fprintf(outfile, "# Addable features (on individual lines):\n");
+fprintf(outfile, "# %%[command] - executes commands initially using system() call\n");
+fprintf(outfile, "# @ - randomizes this playlist at load time\n");
+fprintf(outfile, "# $ - turns on repeat mode at load time\n");
+fprintf(outfile, "#\n\n");
filename = shmptr->plhead;
for(i=0; i < shmptr->listlen; i++) {