summaryrefslogtreecommitdiff
path: root/audio/mp3_check/patches
diff options
context:
space:
mode:
authordholland <dholland>2011-09-04 04:42:40 +0000
committerdholland <dholland>2011-09-04 04:42:40 +0000
commitf403783c4233b4367bec16daca09fa44d7b2c659 (patch)
tree62a117560d6f8705928a7fe59b12bac05393fa06 /audio/mp3_check/patches
parenta3d982667dabfa578c6ecf320f1936f51f6e65aa (diff)
downloadpkgsrc-f403783c4233b4367bec16daca09fa44d7b2c659.tar.gz
Fix gcc/c99 inline mess.
Diffstat (limited to 'audio/mp3_check/patches')
-rw-r--r--audio/mp3_check/patches/patch-ab28
1 files changed, 25 insertions, 3 deletions
diff --git a/audio/mp3_check/patches/patch-ab b/audio/mp3_check/patches/patch-ab
index 8f9a9f73e3e..a530482092d 100644
--- a/audio/mp3_check/patches/patch-ab
+++ b/audio/mp3_check/patches/patch-ab
@@ -1,8 +1,21 @@
-$NetBSD: patch-ab,v 1.1 2002/01/21 11:34:57 wiz Exp $
+$NetBSD: patch-ab,v 1.2 2011/09/04 04:42:41 dholland Exp $
---- mp3_check_misc.c.orig Sat Sep 16 05:36:01 2000
+- fix gcc/c99 inline mess
+- initialize the uninitialized (not sure if this is necessary or just to
+ silence the compiler)
+
+--- mp3_check_misc.c.orig 2000-09-16 03:36:01.000000000 +0000
+++ mp3_check_misc.c
-@@ -631,6 +631,8 @@
+@@ -11,7 +11,7 @@
+ #include "support_functions.h"
+
+ // Function prototypes go here.
+-inline int move_to_next_frame(char *possible_mp3_tag, frame_info *mp3_i, gen_info *file_info, command_flags *flags, FILE *);
++static inline int move_to_next_frame(char *possible_mp3_tag, frame_info *mp3_i, gen_info *file_info, command_flags *flags, FILE *);
+ int get_char_from_file(FILE *, unsigned int *header_value, gen_info *file_info, command_flags *flags, char *possible_mp3_tag);
+ int scan_file(FILE *, char *filename, meta_options *flag_options, command_flags *flags);
+ int parse_args(char **argv, meta_options *flag_options, command_flags *flags);
+@@ -631,6 +631,8 @@ parse_args(argv, flag_options, flags)
int error_count = 0;
int found_file = FALSE;
@@ -11,3 +24,12 @@ $NetBSD: patch-ab,v 1.1 2002/01/21 11:34:57 wiz Exp $
do {
if (*argv) {
+@@ -670,7 +672,7 @@ parse_args(argv, flag_options, flags)
+ return(PASS);
+ }
+
+-inline int
++static inline int
+ move_to_next_frame(possible_mp3_tag, mp3_i, file_info, flags, fp)
+ char *possible_mp3_tag;
+ frame_info *mp3_i;