from Yitzhak

Add absent prototypes to some core routines.
Also add some port function() to function(void) in some win32 routines.
Also updates the Borland C Makefile for win32.
This commit is contained in:
nethack.allison
2002-02-05 13:21:43 +00:00
parent b407cf3dcf
commit 7d1e6f7d57
30 changed files with 96 additions and 73 deletions

View File

@@ -161,7 +161,7 @@ void
nt_regularize(s) /* normalize file name */
register char *s;
{
register char *lp;
register unsigned char *lp;
for (lp = s; *lp; lp++)
if ( *lp == '?' || *lp == '"' || *lp == '\\' ||
@@ -176,11 +176,10 @@ register char *s;
char *get_username(lan_username_size)
int *lan_username_size;
{
static char username_buffer[BUFSZ];
static TCHAR username_buffer[BUFSZ];
unsigned int status;
int i = 0;
DWORD i = BUFSZ - 1;
i = BUFSZ - 1;
/* i gets updated with actual size */
status = GetUserName(username_buffer, &i);
if (status) username_buffer[i] = '\0';