Hi all, attached patch should fix the 2 remaining warnings on a linux build, I could not test it on *BSD or OS X right now but will do it on FreeBSD and OS X later this day. Would somebody please test it on OpenBSD ? daniel
diff -r 6433217a643d playlist.c --- a/playlist.c Sat Feb 12 01:23:50 2011 -0500 +++ b/playlist.c Mon Feb 14 14:52:44 2011 +0100 @@ -214,7 +214,7 @@ /* create playlist and setup */ playlist *p = playlist_new(); p->filename = strdup(filename); - p->name = strdup(basename(filename)); + p->name = strdup(basename((char *)filename)); if (p->filename == NULL || p->name == NULL) err(1, "playlist_load: failed to allocate info for playlist '%s'", filename); @@ -343,9 +343,9 @@ int retrieve_playlist_filenames(const char *dirname, char ***fnames) { - char *glob_pattern; - int fcount; - glob_t files; + char *glob_pattern; + unsigned int fcount; + glob_t files; /* build the search pattern */ if (asprintf(&glob_pattern, "%s/*.playlist", dirname) == -1)