pkgsrc/audio/wmmp3/patches/patch-main_c
dholland c43bf6b1b6 Fix void main, caught by clang.
While here, fix other problems caught by gcc:
 - casting malloc instead of including <stdlib.h>
 - casting strdup instead of including <string.h>
 - failing to include <time.h> with bad consequences for -current.

PKGREVISION -> 3.
2011-09-04 21:38:03 +00:00

15 lines
365 B
Text

$NetBSD: patch-main_c,v 1.1 2011/09/04 21:38:03 dholland Exp $
- fix void main
--- main.c~ 2000-04-03 00:11:46.000000000 +0000
+++ main.c
@@ -230,7 +230,7 @@ int check_options(int argc, char *argv[]
return option_entered;
}
-void main(int argc, char *argv[])
+int main(int argc, char *argv[])
{
struct coord pos[] = {
{35, 34, 12, 11}, /* stop */