mirror of
https://github.com/aaru-dps/fstester.git
synced 2025-12-16 19:24:39 +00:00
Minor type fixes to DOS.
This commit is contained in:
@@ -39,7 +39,6 @@ Copyright (C) 2011-2021 Natalia Portillo
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "../include/consts.h"
|
|
||||||
#include "../include/defs.h"
|
#include "../include/defs.h"
|
||||||
#include "dos.h"
|
#include "dos.h"
|
||||||
|
|
||||||
@@ -49,7 +48,7 @@ void DirectoryDepth(const char* path)
|
|||||||
unsigned int rc ;
|
unsigned int rc ;
|
||||||
unsigned total;
|
unsigned total;
|
||||||
char filename[9];
|
char filename[9];
|
||||||
long pos = 2;
|
int pos = 2;
|
||||||
|
|
||||||
if(driveNo > 32) driveNo -= 32;
|
if(driveNo > 32) driveNo -= 32;
|
||||||
|
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ void Filenames(const char* path)
|
|||||||
unsigned actionTaken, total;
|
unsigned actionTaken, total;
|
||||||
int handle;
|
int handle;
|
||||||
char message[300];
|
char message[300];
|
||||||
int pos = 0;
|
int pos;
|
||||||
|
|
||||||
if(driveNo > 32) driveNo -= 32;
|
if(driveNo > 32) driveNo -= 32;
|
||||||
|
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ void MillionFiles(const char* path)
|
|||||||
char driveNo = path[0] - '@';
|
char driveNo = path[0] - '@';
|
||||||
unsigned int rc;
|
unsigned int rc;
|
||||||
char filename[9];
|
char filename[9];
|
||||||
unsigned long pos = 0;
|
unsigned int pos;
|
||||||
int handle;
|
int handle;
|
||||||
unsigned total;
|
unsigned total;
|
||||||
|
|
||||||
@@ -71,14 +71,14 @@ void MillionFiles(const char* path)
|
|||||||
for(pos = 0; pos < 1000; pos++)
|
for(pos = 0; pos < 1000; pos++)
|
||||||
{
|
{
|
||||||
memset(filename, 0, 9);
|
memset(filename, 0, 9);
|
||||||
sprintf(filename, "%08llu", pos);
|
sprintf(filename, "%08d", pos);
|
||||||
rc = _dos_creatnew(filename, _A_NORMAL, &handle);
|
rc = _dos_creatnew(filename, _A_NORMAL, &handle);
|
||||||
if(rc) break;
|
if(rc) break;
|
||||||
|
|
||||||
_dos_close(handle);
|
_dos_close(handle);
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("\tCreated %llu files\n", pos);
|
printf("\tCreated %d files\n", pos);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ void Timestamps(const char* path)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
rc = chdir("TIMES");
|
chdir("TIMES");
|
||||||
|
|
||||||
printf("Creating timestamped files.\n");
|
printf("Creating timestamped files.\n");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user