mirror of
git://git.code.sf.net/p/openocd/code
synced 2025-07-22 06:21:05 +10:00
Michael Bruck <mbruck@digenius.de> signed/unsigned incompatibility warning
git-svn-id: svn://svn.berlios.de/openocd/trunk@1511 b42882b7-edfa-0310-969c-e2dbd0fdcd60
This commit is contained in:
parent
0ebf92b45c
commit
a247833a5a
@ -58,7 +58,7 @@ int server_use_pipes = 0;
|
|||||||
|
|
||||||
int add_connection(service_t *service, command_context_t *cmd_ctx)
|
int add_connection(service_t *service, command_context_t *cmd_ctx)
|
||||||
{
|
{
|
||||||
unsigned int address_size;
|
socklen_t address_size;
|
||||||
connection_t *c, **p;
|
connection_t *c, **p;
|
||||||
int retval;
|
int retval;
|
||||||
int flag=1;
|
int flag=1;
|
||||||
@ -422,7 +422,7 @@ int server_loop(command_context_t *command_context)
|
|||||||
if (service->type != CONNECTION_PIPE)
|
if (service->type != CONNECTION_PIPE)
|
||||||
{
|
{
|
||||||
struct sockaddr_in sin;
|
struct sockaddr_in sin;
|
||||||
unsigned int address_size = sizeof(sin);
|
socklen_t address_size = sizeof(sin);
|
||||||
int tmp_fd;
|
int tmp_fd;
|
||||||
tmp_fd = accept(service->fd, (struct sockaddr *)&service->sin, &address_size);
|
tmp_fd = accept(service->fd, (struct sockaddr *)&service->sin, &address_size);
|
||||||
close_socket(tmp_fd);
|
close_socket(tmp_fd);
|
||||||
|
Loading…
Reference in New Issue
Block a user