diff --git a/setter/src/dos/dirdepth.c b/setter/src/dos/dirdepth.c index c9aca9d..642c2cc 100644 --- a/setter/src/dos/dirdepth.c +++ b/setter/src/dos/dirdepth.c @@ -39,7 +39,6 @@ Copyright (C) 2011-2021 Natalia Portillo #include #endif -#include "../include/consts.h" #include "../include/defs.h" #include "dos.h" @@ -49,7 +48,7 @@ void DirectoryDepth(const char* path) unsigned int rc ; unsigned total; char filename[9]; - long pos = 2; + int pos = 2; if(driveNo > 32) driveNo -= 32; diff --git a/setter/src/dos/filename.c b/setter/src/dos/filename.c index 21d9e82..c4203bc 100644 --- a/setter/src/dos/filename.c +++ b/setter/src/dos/filename.c @@ -50,7 +50,7 @@ void Filenames(const char* path) unsigned actionTaken, total; int handle; char message[300]; - int pos = 0; + int pos; if(driveNo > 32) driveNo -= 32; diff --git a/setter/src/dos/files.c b/setter/src/dos/files.c index baff39b..26484a8 100644 --- a/setter/src/dos/files.c +++ b/setter/src/dos/files.c @@ -47,7 +47,7 @@ void MillionFiles(const char* path) char driveNo = path[0] - '@'; unsigned int rc; char filename[9]; - unsigned long pos = 0; + unsigned int pos; int handle; unsigned total; @@ -71,14 +71,14 @@ void MillionFiles(const char* path) for(pos = 0; pos < 1000; pos++) { memset(filename, 0, 9); - sprintf(filename, "%08llu", pos); + sprintf(filename, "%08d", pos); rc = _dos_creatnew(filename, _A_NORMAL, &handle); if(rc) break; _dos_close(handle); } - printf("\tCreated %llu files\n", pos); + printf("\tCreated %d files\n", pos); } #endif diff --git a/setter/src/dos/time.c b/setter/src/dos/time.c index 7433471..7702373 100644 --- a/setter/src/dos/time.c +++ b/setter/src/dos/time.c @@ -67,7 +67,7 @@ void Timestamps(const char* path) return; } - rc = chdir("TIMES"); + chdir("TIMES"); printf("Creating timestamped files.\n");