openbsd-ports/audio/grip/patches/patch-src_rip_c
2008-05-13 14:20:25 +00:00

31 lines
1.2 KiB
Plaintext

$OpenBSD: patch-src_rip_c,v 1.5 2008/05/13 14:20:25 naddy Exp $
--- src/rip.c.orig Thu Apr 15 20:21:15 2004
+++ src/rip.c Tue May 13 16:15:31 2008
@@ -27,7 +27,7 @@
#elif defined (HAVE_SYS_VFS_H)
#include <sys/vfs.h>
#endif
-#if defined(__FreeBSD__) || defined(__NetBSD__)
+#if defined(__OpenBSD__) || defined(__NetBSD__)
#include <sys/param.h>
#include <sys/mount.h>
#endif
@@ -393,7 +393,7 @@ static void AddSQLEntry(GripInfo *ginfo,EncodeTrack *e
"-t",enc_track->song_name,"-d",enc_track->disc_name,
"-g",ID3GenreString(enc_track->id3_genre),"-y",year_str,
"-n",track_str,
- "-f",frame_str,"-l",length_str,"-m",playtime_str,NULL);
+ "-f",frame_str,"-l",length_str,"-m",playtime_str,(void *)NULL);
else
execlp("mp3insert","mp3insert",
"-p",enc_track->mp3_filename,
@@ -401,7 +401,7 @@ static void AddSQLEntry(GripInfo *ginfo,EncodeTrack *e
"-t",enc_track->song_name,"-d",enc_track->disc_name,
"-g",ID3GenreString(enc_track->id3_genre),"-y",year_str,
"-n",track_str,
- "-f",frame_str,"-l",length_str,"-m",playtime_str,NULL);
+ "-f",frame_str,"-l",length_str,"-m",playtime_str,(void *)NULL);
_exit(0);
}