Mercurial > hg > batmud > maputils
changeset 2081:695aa9334444
Rename a variable.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 21 Aug 2019 15:01:05 +0300 |
parents | 11bb8dc0a146 |
children | f603384d6c5a |
files | map2ppm.c |
diffstat | 1 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/map2ppm.c Wed Aug 21 15:00:43 2019 +0300 +++ b/map2ppm.c Wed Aug 21 15:01:05 2019 +0300 @@ -12,7 +12,7 @@ #endif char *srcFilename = NULL, - *destFilename = NULL; + *dstFilename = NULL; BOOL optUseOldFormat = FALSE, optInputIsDiff = FALSE, @@ -83,8 +83,8 @@ break; case 5: - destFilename = optArg; - THMSG(2, "Output file set to '%s'.\n", destFilename); + dstFilename = optArg; + THMSG(2, "Output file set to '%s'.\n", dstFilename); break; case 6: @@ -379,13 +379,13 @@ } // Open output file - if (destFilename == NULL) + if (dstFilename == NULL) outFile = stdout; else - if ((outFile = fopen(destFilename, "wb")) == NULL) + if ((outFile = fopen(dstFilename, "wb")) == NULL) { THERR("Error opening output file '%s'!\n", - destFilename); + dstFilename); goto out; }