From 5db24cdc547c702dea41af400e204320ff726196 Mon Sep 17 00:00:00 2001 From: Svend Sorensen Date: Fri, 10 Sep 2004 05:21:17 +0000 Subject: [PATCH] Remove global variables. --- tools/cueprint.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tools/cueprint.c b/tools/cueprint.c index b79cb0b..63ad902 100644 --- a/tools/cueprint.c +++ b/tools/cueprint.c @@ -42,8 +42,6 @@ ISRC (CD-TEXT): %u\n\ " char *progname; -char *d_template = NULL; /* disc template */ -char *t_template = NULL; /* track template */ void usage (int status) { @@ -335,7 +333,7 @@ void cd_printf (char *format, Cd *cd, int trackno) } } -int info (char *name, int format) +int info (char *name, int format, char *d_template, char *t_template) { Cd *cd = NULL; int i; /* track number */ @@ -357,6 +355,8 @@ int info (char *name, int format) int main (int argc, char **argv) { int format = UNKNOWN; + char *d_template = NULL; /* disc template */ + char *t_template = NULL; /* track template */ /* getopt () variables */ char c; extern char *optarg; @@ -400,10 +400,10 @@ int main (int argc, char **argv) } if (optind == argc) { - info("-", format); + info("-", format, d_template, t_template); } else { for (; optind < argc; optind++) - info(argv[optind], format); + info(argv[optind], format, d_template, t_template); } return 0;