Skip to content

Commit

Permalink
physfs_platform_os2.c: eliminated signedness warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
sezero authored and icculus committed Apr 16, 2022
1 parent cd2e055 commit 0ae9467
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/physfs_platform_os2.c
Expand Up @@ -222,7 +222,7 @@ static char *cvtPathToCorrectCase(char *buf)
if (ptr != NULL) /* isolate element to find (fname is the start). */
*ptr = '\0';

rc = DosFindFirst((unsigned char *) spec, &hdir, FILE_DIRECTORY,
rc = DosFindFirst(spec, &hdir, FILE_DIRECTORY,
&fb, sizeof (fb), &count, FIL_STANDARD);
if (rc == NO_ERROR)
{
Expand Down Expand Up @@ -331,7 +331,7 @@ static int isCdRomDrive(ULONG drive)
ULONG ul1, ul2;
APIRET rc;
HFILE hfile = NULLHANDLE;
unsigned char drivename[3] = { 0, ':', '\0' };
char drivename[3] = { 0, ':', '\0' };

drivename[0] = 'A' + drive;

Expand Down Expand Up @@ -443,7 +443,7 @@ PHYSFS_EnumerateCallbackResult __PHYSFS_platformEnumerate(const char *dirname,
__PHYSFS_smallFree(utf8);
BAIL_IF_ERRPASS(!cpspec, PHYSFS_ENUM_ERROR);

rc = DosFindFirst((unsigned char *) cpspec, &hdir,
rc = DosFindFirst(cpspec, &hdir,
FILE_DIRECTORY | FILE_ARCHIVED |
FILE_READONLY | FILE_HIDDEN | FILE_SYSTEM,
&fb, sizeof (fb), &count, FIL_STANDARD);
Expand Down Expand Up @@ -535,7 +535,7 @@ int __PHYSFS_platformMkDir(const char *filename)
APIRET rc;
char *cpstr = cvtUtf8ToCodepage(filename);
BAIL_IF_ERRPASS(!cpstr, 0);
rc = DosCreateDir((unsigned char *) cpstr, NULL);
rc = DosCreateDir(cpstr, NULL);
allocator.Free(cpstr);
BAIL_IF(rc != NO_ERROR, errcodeFromAPIRET(rc), 0);
return 1;
Expand Down

0 comments on commit 0ae9467

Please sign in to comment.