diff options
author | 2011-07-28 15:34:33 +0000 | |
---|---|---|
committer | 2011-07-28 15:34:33 +0000 | |
commit | 38e4c3f09deeb8dd59c2cd09072a4c3cd79d7b5a (patch) | |
tree | 844b063d52b38347baf8e210b82ba2c566871285 /src/osd/windows/winsocket.c | |
parent | a871dbf0aa1027e9c0ddfdb02f9cd940fcb0496c (diff) |
Fix for VS2010 build (no whatsnew)
Diffstat (limited to 'src/osd/windows/winsocket.c')
-rw-r--r-- | src/osd/windows/winsocket.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/osd/windows/winsocket.c b/src/osd/windows/winsocket.c index 661bba4145b..2b132a69b0b 100644 --- a/src/osd/windows/winsocket.c +++ b/src/osd/windows/winsocket.c @@ -105,7 +105,7 @@ file_error win_open_socket(const char *path, UINT32 openflags, osd_file **file, file_error win_read_socket(osd_file *file, void *buffer, UINT64 offset, UINT32 count, UINT32 *actual) { - ssize_t result; + int result; char line[80]; struct timeval timeout; fd_set readfds; @@ -116,7 +116,7 @@ file_error win_read_socket(osd_file *file, void *buffer, UINT64 offset, UINT32 c if (select(file->socket + 1, &readfds, NULL, NULL, &timeout) < 0) { - sprintf(line, "%s : %s : %d ", __func__, __FILE__, __LINE__); + sprintf(line, "win_read_socket : %s : %d ", __FILE__, __LINE__); perror(line); return win_error_to_mame_file_error(errno); } @@ -143,7 +143,7 @@ file_error win_read_socket(osd_file *file, void *buffer, UINT64 offset, UINT32 c file_error win_write_socket(osd_file *file, const void *buffer, UINT64 offset, UINT32 count, UINT32 *actual) { - ssize_t result; + int result; result = send(file->socket, (const char*)buffer, count, 0); if (result < 0) { |