com php-src: Ports are unsigned short, use unsigned to display: phpdbg.c

From: Date: Thu, 09 Oct 2014 10:01:25 +0000
Subject: com php-src: Ports are unsigned short, use unsigned to display: phpdbg.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-82593@lists.php.net to get a copy of this message
Commit: ca7f2f5f43eda96c098553f6a9e99c2ea6c4d17b Author: Bob Weinand <bobwei9@hotmail.com> Thu, 9 Oct 2014 12:01:25 +0200 Parents: eabcdb2eb28e423aff6bb5ff575416c42a0dc3e6 Branches: PHP-5.6 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=ca7f2f5f43eda96c098553f6a9e99c2ea6c4d17b Log: Ports are unsigned short, use unsigned to display Changed paths: M phpdbg.c Diff: diff --git a/phpdbg.c b/phpdbg.c index 36e4bf8..787ffe7 100644 --- a/phpdbg.c +++ b/phpdbg.c @@ -791,18 +791,18 @@ static void phpdbg_remote_close(int socket, FILE *stream) { } /* don't inline this, want to debug it easily, will inline when done */ -static int phpdbg_remote_init(const char* address, short port, int *server, int *socket, FILE **stream) { +static int phpdbg_remote_init(const char* address, unsigned short port, int *server, int *socket, FILE **stream) { phpdbg_remote_close(*socket, *stream); *server = phpdbg_open_socket(address, port); if (*server < 0) { - phpdbg_rlog(fileno(stderr), "Initializing connection on %s:%d failed", address, port); + phpdbg_rlog(fileno(stderr), "Initializing connection on %s:%u failed", address, port); return FAILURE; } - phpdbg_rlog(fileno(stderr), "accepting connections on %s:%d", address, port); + phpdbg_rlog(fileno(stderr), "accepting connections on %s:%u", address, port); { struct sockaddr_in address; socklen_t size = sizeof(address);

« previous php.cvs (#82593) next »