summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/libc/rexec.cc
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2016-03-24 16:39:15 +0100
committerCorinna Vinschen <corinna@vinschen.de>2016-03-24 16:39:15 +0100
commitacc5f02ce8637bb6b395292fa259d20c296d8aa8 (patch)
tree318ee689b36a0decbd28f2a715b2c61ed3ab9bea /winsup/cygwin/libc/rexec.cc
parent6ba2b53c53260323039d7f872034991e6706a20b (diff)
downloadcygnal-acc5f02ce8637bb6b395292fa259d20c296d8aa8.tar.gz
cygnal-acc5f02ce8637bb6b395292fa259d20c296d8aa8.tar.bz2
cygnal-acc5f02ce8637bb6b395292fa259d20c296d8aa8.zip
Throughout Cygwin, use u_intN_t or uintN_t
Don't use u_char, u_short, u_int or u_long in Cygwin, unless it refers to the Winsock types. Use u_intN_t in BSD-based sources, unsigned char where strings are concerned, uintN_t otherwise. Also: * net.cc: Fix comment, we're not using u_long anymore. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'winsup/cygwin/libc/rexec.cc')
-rw-r--r--winsup/cygwin/libc/rexec.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/libc/rexec.cc b/winsup/cygwin/libc/rexec.cc
index a796e9762..a9d0048d3 100644
--- a/winsup/cygwin/libc/rexec.cc
+++ b/winsup/cygwin/libc/rexec.cc
@@ -315,7 +315,7 @@ cygwin_rexec (char **ahost, unsigned short rport, char *name, char *pass,
{
struct sockaddr_in sin, sin2, from;
struct hostent *hp;
- u_short port = 0;
+ uint16_t port = 0;
int s, timo = 1, s3;
char c;
static char ahostbuf[INTERNET_MAX_HOST_NAME_LENGTH + 1];
@@ -371,7 +371,7 @@ retry:
(void) close(s2);
goto bad;
}
- port = ntohs((u_short)sin2.sin_port);
+ port = ntohs((uint16_t)sin2.sin_port);
(void) sprintf(num, "%u", port);
(void) write(s, num, strlen(num)+1);
{ int len = sizeof (from);