This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Main OpenOCD repository".
The branch, master has been updated
via f32492c74f29f7efd0d73f8118d0b988bc24f56a (commit)
from 737c9b6258c6e68714ae264ff36126eb5d382d6a (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit f32492c74f29f7efd0d73f8118d0b988bc24f56a
Author: Spencer Oliver <nt...@us...>
Date: Thu May 6 22:51:20 2010 +0100
server: incorrectly display socket port number
c->sin.sin_port does not contain a valid port number so just use
service->port as this is always correct.
Signed-off-by: Spencer Oliver <nt...@us...>
diff --git a/src/server/server.c b/src/server/server.c
index 7e57228..57c4016 100644
--- a/src/server/server.c
+++ b/src/server/server.c
@@ -78,7 +78,7 @@ static int add_connection(struct service *service, struct command_context *cmd_c
(char *)&flag, /* the cast is historical cruft */
sizeof(int)); /* length of option value */
- LOG_INFO("accepting '%s' connection from %i", service->name, c->sin.sin_port);
+ LOG_INFO("accepting '%s' connection from %i", service->name, service->port);
if ((retval = service->new_connection(c)) != ERROR_OK)
{
close_socket(c->fd);
-----------------------------------------------------------------------
Summary of changes:
src/server/server.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
hooks/post-receive
--
Main OpenOCD repository
|