aboutsummaryrefslogtreecommitdiff
path: root/src/server
diff options
context:
space:
mode:
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-04-22 17:36:00 +0000
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-04-22 17:36:00 +0000
commita247833a5a78cf53a026d89c989179924ac886bf (patch)
tree40080df808a783fabec5dfcb0e8ca1fe67bfaf29 /src/server
parent0ebf92b45c1c475c324c1fd1da534426de13dd3a (diff)
Michael Bruck <mbruck@digenius.de> signed/unsigned incompatibility warning
git-svn-id: svn://svn.berlios.de/openocd/trunk@1511 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/server')
-rw-r--r--src/server/server.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/server.c b/src/server/server.c
index e97dac9a..22e01c61 100644
--- a/src/server/server.c
+++ b/src/server/server.c
@@ -58,7 +58,7 @@ int server_use_pipes = 0;
int add_connection(service_t *service, command_context_t *cmd_ctx)
{
- unsigned int address_size;
+ socklen_t address_size;
connection_t *c, **p;
int retval;
int flag=1;
@@ -422,7 +422,7 @@ int server_loop(command_context_t *command_context)
if (service->type != CONNECTION_PIPE)
{
struct sockaddr_in sin;
- unsigned int address_size = sizeof(sin);
+ socklen_t address_size = sizeof(sin);
int tmp_fd;
tmp_fd = accept(service->fd, (struct sockaddr *)&service->sin, &address_size);
close_socket(tmp_fd);