Alexandre Julliard : winedbg: Use socklen_t where appropriate.

Alexandre Julliard julliard at winehq.org
Wed Mar 6 13:11:53 CST 2013


Module: wine
Branch: master
Commit: 51947acd5abb07209a8929ab639c1016a733e828
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=51947acd5abb07209a8929ab639c1016a733e828

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Wed Mar  6 14:09:24 2013 +0100

winedbg: Use socklen_t where appropriate.

---

 programs/winedbg/gdbproxy.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/programs/winedbg/gdbproxy.c b/programs/winedbg/gdbproxy.c
index 580fb88..66ff6a8 100644
--- a/programs/winedbg/gdbproxy.c
+++ b/programs/winedbg/gdbproxy.c
@@ -476,6 +476,7 @@ static inline DWORD64   cpu_register(CONTEXT* ctx, unsigned idx)
     default:
         fprintf(stderr, "got unexpected size: %u\n", (unsigned)cpu_register_map[idx].ctx_length);
         assert(0);
+        return 0;
     }
 }
 
@@ -2363,7 +2364,7 @@ static BOOL gdb_startup(struct gdb_context* gdbctx, DEBUG_EVENT* de, unsigned fl
 {
     int                 sock;
     struct sockaddr_in  s_addrs;
-    unsigned int        s_len = sizeof(s_addrs);
+    socklen_t           s_len = sizeof(s_addrs);
     struct pollfd       pollfd;
     IMAGEHLP_MODULE64   imh_mod;
     BOOL                ret = FALSE;




More information about the wine-cvs mailing list