Minor cleanup

git-svn-id: svn://svn.cc65.org/cc65/trunk@1979 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz
2003-02-12 23:15:34 +00:00
parent e1085adfc3
commit c6cf5d7fd9
3 changed files with 10 additions and 10 deletions

View File

@@ -352,7 +352,7 @@ static void ConvertZeropageSeg (FILE* F, const O65Data* D)
void Convert (const O65Data* D, const char* OutputFile) void Convert (const O65Data* D)
/* Convert the o65 file in D using the given output file. */ /* Convert the o65 file in D using the given output file. */
{ {
FILE* F; FILE* F;
@@ -436,9 +436,9 @@ void Convert (const O65Data* D, const char* OutputFile)
} }
/* Open the output file */ /* Open the output file */
F = fopen (OutputFile, "wb"); F = fopen (OutputName, "wb");
if (F == 0) { if (F == 0) {
Error ("Cannot open `%s': %s", OutputFile, strerror (errno)); Error ("Cannot open `%s': %s", OutputName, strerror (errno));
} }
/* Create a header */ /* Create a header */

View File

@@ -55,8 +55,8 @@ struct O65Data;
void Convert (const struct O65Data* D, const char* OutputFile); void Convert (const struct O65Data* D);
/* Convert the o65 file in D using the given output file. */ /* Convert the o65 file in D */

View File

@@ -295,14 +295,14 @@ static void OptZeropageName (const char* Opt attribute ((unused)), const char* A
static void ConvertOneFile (const char* InputFile, const char* OutputFile) static void DoConversion (void)
/* Do file conversion */ /* Do file conversion */
{ {
/* Read the o65 file into memory */ /* Read the o65 file into memory */
O65Data* D = ReadO65File (InputFile); O65Data* D = ReadO65File (InputName);
/* Do the conversion */ /* Do the conversion */
Convert (D, OutputFile); Convert (D);
/* Free the o65 module data */ /* Free the o65 module data */
/* ### */ /* ### */
@@ -410,7 +410,7 @@ int main (int argc, char* argv [])
} }
/* Do the conversion */ /* Do the conversion */
ConvertOneFile (InputName, OutputName); DoConversion ();
/* Return an apropriate exit code */ /* Return an apropriate exit code */
return EXIT_SUCCESS; return EXIT_SUCCESS;