Skip to content

Commit

Permalink
More cleanups.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Apr 13, 2002
1 parent bed1042 commit 228fbf0
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions platform/win32.c
Expand Up @@ -3,13 +3,9 @@
*
* Please see the file LICENSE in the source's root directory.
*
* This file written by Ryan C. Gordon.
* This file written by Ryan C. Gordon, and made sane by Gregory S. Read.
*/

#if (defined __STRICT_ANSI__)
#define __PHYSFS_DOING_STRICT_ANSI__
#endif

#include <windows.h>
#include <userenv.h>
#include <stdio.h>
Expand Down Expand Up @@ -62,6 +58,9 @@ char **__PHYSFS_platformDetectAvailableCDs(void)
{
if (GetDriveType(drive_str) == DRIVE_CDROM)
{

/* !!! FIXME: Make sure there's really a disc in the drive? */

char **tmp = realloc(retval, sizeof (char *) * cd_count + 1);
if (tmp)
{
Expand Down Expand Up @@ -146,7 +145,7 @@ char *__PHYSFS_platformGetUserDir(void)
{
char *userdir = NULL;

if(runningNT)
if (runningNT)
{
userdir = ProfileDirectory;
}
Expand Down Expand Up @@ -441,7 +440,7 @@ int __PHYSFS_platformMkDir(const char *path)
*
* Return zero if there was a catastrophic failure and non-zero otherwise.
*/
static int doNTInit()
static int doNTInit(void)
{
DWORD pathsize = 0;
char TempProfileDirectory[1];
Expand Down Expand Up @@ -530,7 +529,7 @@ int __PHYSFS_platformInit(void)
*
* Return zero if there was a catastrophic failure and non-zero otherwise.
*/
static int doNTDeinit()
static int doNTDeinit(void)
{
if(CloseHandle(AccessTokenHandle) != S_OK)
{
Expand Down

0 comments on commit 228fbf0

Please sign in to comment.