mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-23 19:28:36 +00:00
libcompat: Use %hu for unsigned shorts.
Obtained from: DragonFlyBSD (git 82e1476a)
This commit is contained in:
parent
b2fe54bc8b
commit
0ed20b78b7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=329102
|
@ -356,7 +356,7 @@ rexec(ahost, rport, name, pass, cmd, fd2p)
|
|||
goto bad;
|
||||
}
|
||||
port = ntohs((u_short)sin2.sin_port);
|
||||
(void) sprintf(num, "%u", port);
|
||||
(void) sprintf(num, "%hu", port);
|
||||
(void) write(s, num, strlen(num)+1);
|
||||
{ int len = sizeof (from);
|
||||
s3 = accept(s2, (struct sockaddr *)&from, &len);
|
||||
|
|
Loading…
Reference in a new issue