mirror of
https://github.com/aaru-dps/fstester.git
synced 2025-12-16 19:24:39 +00:00
Fix warning in UNIX.
This commit is contained in:
@@ -37,7 +37,6 @@ void Filenames(const char* path)
|
|||||||
int ret;
|
int ret;
|
||||||
FILE* h;
|
FILE* h;
|
||||||
int rc, wRc, cRc;
|
int rc, wRc, cRc;
|
||||||
char message[300];
|
|
||||||
int pos;
|
int pos;
|
||||||
|
|
||||||
ret = chdir(path);
|
ret = chdir(path);
|
||||||
@@ -76,10 +75,7 @@ void Filenames(const char* path)
|
|||||||
if(!h) { rc = errno; }
|
if(!h) { rc = errno; }
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
memset(message, 0, 300);
|
ret = fprintf(h, FILENAME_FORMAT, filenames[pos]);
|
||||||
sprintf(message, FILENAME_FORMAT, filenames[pos]);
|
|
||||||
|
|
||||||
ret = fprintf(h, message);
|
|
||||||
if(ret < 0) { wRc = errno; }
|
if(ret < 0) { wRc = errno; }
|
||||||
|
|
||||||
ret = fclose(h);
|
ret = fclose(h);
|
||||||
|
|||||||
Reference in New Issue
Block a user