Browse Source

Remove global variables.

master
Svend Sorensen 20 years ago
parent
commit
5db24cdc54
1 changed files with 5 additions and 5 deletions
  1. +5
    -5
      tools/cueprint.c

+ 5
- 5
tools/cueprint.c View File

@@ -42,8 +42,6 @@ ISRC (CD-TEXT): %u\n\
" "


char *progname; char *progname;
char *d_template = NULL; /* disc template */
char *t_template = NULL; /* track template */


void usage (int status) 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; Cd *cd = NULL;
int i; /* track number */ int i; /* track number */
@@ -357,6 +355,8 @@ int info (char *name, int format)
int main (int argc, char **argv) int main (int argc, char **argv)
{ {
int format = UNKNOWN; int format = UNKNOWN;
char *d_template = NULL; /* disc template */
char *t_template = NULL; /* track template */
/* getopt () variables */ /* getopt () variables */
char c; char c;
extern char *optarg; extern char *optarg;
@@ -400,10 +400,10 @@ int main (int argc, char **argv)
} }


if (optind == argc) { if (optind == argc) {
info("-", format);
info("-", format, d_template, t_template);
} else { } else {
for (; optind < argc; optind++) for (; optind < argc; optind++)
info(argv[optind], format);
info(argv[optind], format, d_template, t_template);
} }


return 0; return 0;


Loading…
Cancel
Save