[Debburn-devel] wordendc used in wodim/cue.c before it's declared

Matt Kraai kraai at ftbfs.org
Sun Nov 15 17:11:06 UTC 2009


Hi,

In the latest version of wodim/cue.c, wordendc is used before it's
defined, which causes the file to fail to compile.  The attached patch
fixes this problem by reverting to the old code (which used getdelim
to return the wordendc) and renaming getdelim.

-- 
Matt                                            http://ftbfs.org/kraai
-------------- next part --------------
Index: wodim/cue.c
===================================================================
--- wodim/cue.c	(revision 837)
+++ wodim/cue.c	(working copy)
@@ -253,6 +253,7 @@
 static	char	*peekword(void);
 static	char	*lineend(void);
 static	char	*markword(char *delim);
+static	char	getwordendc(void);
 static	char	*getnextitem(char *delim);
 static	char	*neednextitem(char *delim);
 static	char	*nextword(void);
@@ -745,7 +746,7 @@
 	if (kp == NULL)
 		cueabort("Unknown filetype '%s'", word);
 
-	if (wordendc == '/') {
+	if (getwordendc() == '/') {
 		word = needitem();
 		if (*astol(++word, &secsize) != '\0')
 			cueabort("Not a number '%s'", word);
@@ -1126,6 +1127,12 @@
 	return (linep);
 }
 
+static char
+getwordendc()
+{
+	return (wordendc);
+}
+
 static char *
 getnextitem(char *delim)
 {


More information about the Debburn-devel mailing list