[xiph-cvs] cvs commit: vorbis-tools/ogg123 playlist.c

Stan Seibert volsung at xiph.org
Sat Jul 13 10:57:11 PDT 2002



volsung     02/07/13 10:57:11

  Modified:    ogg123   playlist.c
  Log:
  Fix for non-POSIXness of some BSDs and fix for missing parameter in error
  string.

Revision  Changes    Path
1.3       +8 -2      vorbis-tools/ogg123/playlist.c

Index: playlist.c
===================================================================
RCS file: /usr/local/cvsroot/vorbis-tools/ogg123/playlist.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- playlist.c	2002/07/06 19:12:18	1.2
+++ playlist.c	2002/07/13 17:57:10	1.3
@@ -11,7 +11,7 @@
  *                                                                  *
  ********************************************************************
 
- last mod: $Id: playlist.c,v 1.2 2002/07/06 19:12:18 volsung Exp $
+ last mod: $Id: playlist.c,v 1.3 2002/07/13 17:57:10 volsung Exp $
 
  ********************************************************************/
 
@@ -26,6 +26,11 @@
 #include "playlist.h"
 #include "i18n.h"
 
+/* Work with *BSD differences */
+#if !defined(NAME_MAX) && defined(MAXNAMLEN) 
+#define NAME_MAX MAXNAMLEN
+#endif
+
 playlist_element_t *playlist_element_create(char *filename)
 {
   playlist_element_t *element = (playlist_element_t *) 
@@ -207,7 +212,8 @@
         if (playlist_append_directory(list, filename) == 0)
           fprintf(stderr, 
                   _("Warning from playlist %s: "
-		    "Could not read directory %s.\n"), filename);
+		    "Could not read directory %s.\n"), playlist_filename,
+		  filename);
       } else {
         playlist_append_file(list, filename);
       }

<p><p><p>--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the commits mailing list