fxos.c, fxGethostname: fix a strict aliasing issue
This commit is contained in:
@@ -32,9 +32,9 @@ void sleep(int secs)
|
||||
Sleep(secs * 1000);
|
||||
}
|
||||
|
||||
int fxGethostname(char *name, int n)
|
||||
int fxGethostname(char *name, unsigned long n)
|
||||
{
|
||||
return (int)GetComputerName((LPTSTR)name,(LPDWORD)&n);
|
||||
return (int) GetComputerNameA((LPTSTR)name, &n);
|
||||
}
|
||||
#else
|
||||
#include <fxos.h>
|
||||
|
||||
@@ -31,7 +31,7 @@ extern "C" {
|
||||
void sleep(int secs);
|
||||
#define gethostname fxGethostname
|
||||
|
||||
int gethostname(char *name, int namelen);
|
||||
int gethostname(char *name, unsigned long namelen);
|
||||
|
||||
# endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user