Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / audio / cmp3 / patches / patch-af
blob50dbddb50390e2899fe012b90c8e730f8db61df8
1 $NetBSD: patch-af,v 1.1 2004/01/02 16:17:40 cjep Exp $
2 --- cmp3listfiles.c.orig        2001-06-13 20:13:16.000000000 +0000
3 +++ cmp3listfiles.c
4 @@ -7,7 +7,7 @@
5  #include <stdio.h>
6  #include <string.h>
7  
8 -#include"cmp3funcs.h"
9 +#include "cmp3funcs.h"
11  typedef struct {
12      char dirLetter;
13 @@ -121,7 +121,7 @@ void readm3u(FILE *infile)
14  {
15      char buffer[MAX_FULL];
16      
17 -    while (getline(buffer, MAX_FULL, infile) == 1) {
18 +    while (cmp3_getline(buffer, MAX_FULL, infile) == 1) {
19          if (buffer[0] == '#')
20              continue;
21          if (doConversions(buffer) == 1)
22 @@ -134,7 +134,7 @@ void readpls(FILE *infile)
23      char buffer[MAX_FULL],
24           *filename;
25      
26 -    while (getline(buffer, MAX_FULL, infile) == 1) {
27 +    while (cmp3_getline(buffer, MAX_FULL, infile) == 1) {
28          if ((buffer[0] == '[') || (buffer[0] == '#'))
29              continue;
30          if (!Strncmp(buffer, "file", 4)) {
31 @@ -269,15 +269,14 @@ void writelist(char *filepath)
32      if (outfile == NULL)
33  /*         XXX - alert person */
34          return;
35 -    fprintf(outfile,
36 -"##############################################################################
37 -# Dumped Cmp3 playlist ass file
39 -# Addable features (on individual lines):
40 -# %%[command] - executes commands initially using system() call
41 -# @ - randomizes this playlist at load time
42 -# $ - turns on repeat mode at load time
43 -#\n\n");
44 +fprintf(outfile, "##############################################################################\n");
45 +fprintf(outfile, "# Dumped Cmp3 playlist ass file\n");
46 +fprintf(outfile, "#\n");
47 +fprintf(outfile, "# Addable features (on individual lines):\n");
48 +fprintf(outfile, "# %%[command] - executes commands initially using system() call\n");
49 +fprintf(outfile, "# @ - randomizes this playlist at load time\n");
50 +fprintf(outfile, "# $ - turns on repeat mode at load time\n");
51 +fprintf(outfile, "#\n\n");
53      filename = shmptr->plhead;
54      for(i=0; i < shmptr->listlen; i++) {