--- tzip-1.12/tzip.cc 1998-09-12 05:57:00.000000000 +0100 +++ tzip-1.12/tzip.cc 2009-08-12 16:07:36.000000000 +0100 @@ -24,9 +24,9 @@ static int compressFile(FILE *iFile, FILE *oFile); static int uncompressFile(FILE *iFile, FILE *oFile); -static void warn(char *fmt, ...); -static void pwarn(char *fmt, ...); -static void errQuit(char *fmt, ...); +static void warn(const char *fmt, ...); +static void pwarn(const char *fmt, ...); +static void errQuit(const char *fmt, ...); static void help(); @@ -74,7 +74,7 @@ case 'd': action = TZIP_UNCOMPRESS; break; case 'f': optForce = 1; break; case 'h': help(); break; - case 'i': incVal[atoi(argv[optind++])] = atoi(argv[optind++]); break; + case 'i': incVal[atoi(argv[optind])] = atoi(argv[optind+1]); optind += 2; break; case 'p': optPreserve = 1; break; case 'q': optQuiet = 1; break; case 't': action = TZIP_TEST; @@ -344,7 +344,7 @@ void -warn(char *fmt, ...) +warn(const char *fmt, ...) { char buf[256]; va_list ap; @@ -362,7 +362,7 @@ void -pwarn(char *fmt, ...) +pwarn(const char *fmt, ...) { char buf[256], buf1[256]; va_list ap; @@ -380,7 +380,7 @@ void -errQuit(char *fmt, ...) +errQuit(const char *fmt, ...) { char buf[256]; va_list ap;