summaryrefslogtreecommitdiff
path: root/audio/mp3_check/patches/patch-ab
blob: a530482092d05814a5b8e4958f4ee62a2826cea6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
$NetBSD: patch-ab,v 1.2 2011/09/04 04:42:41 dholland Exp $

- 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
@@ -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;
 
+	fp = NULL;
+	filename = NULL;
 
 	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;