Minor type fixes to DOS.

This commit is contained in:
2021-03-11 04:48:10 +00:00
parent 90bf021197
commit 8944c844c4
4 changed files with 6 additions and 7 deletions

View File

@@ -39,7 +39,6 @@ Copyright (C) 2011-2021 Natalia Portillo
#include <unistd.h>
#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;

View File

@@ -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;

View File

@@ -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

View File

@@ -67,7 +67,7 @@ void Timestamps(const char* path)
return;
}
rc = chdir("TIMES");
chdir("TIMES");
printf("Creating timestamped files.\n");