diff options
author | Pedro F. Giffuni <pfg@FreeBSD.org> | 2018-02-10 14:45:29 +0000 |
---|---|---|
committer | Pedro F. Giffuni <pfg@FreeBSD.org> | 2018-02-10 14:45:29 +0000 |
commit | 0ed20b78b7c7795d0688d3b38a3890d8721b1be6 (patch) | |
tree | cf06f2b7178a44dde8b10beab7bac41cdbd56a47 /lib/libcompat | |
parent | b2fe54bc8b9e01cf2b3257a767dcd74d819303d3 (diff) | |
download | src-test-0ed20b78b7c7795d0688d3b38a3890d8721b1be6.tar.gz src-test-0ed20b78b7c7795d0688d3b38a3890d8721b1be6.zip |
libcompat: Use %hu for unsigned shorts.
Obtained from: DragonFlyBSD (git 82e1476a)
Notes
Notes:
svn path=/head/; revision=329102
Diffstat (limited to 'lib/libcompat')
-rw-r--r-- | lib/libcompat/4.3/rexec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libcompat/4.3/rexec.c b/lib/libcompat/4.3/rexec.c index a6599209605e8..edbe6fcc5f882 100644 --- a/lib/libcompat/4.3/rexec.c +++ b/lib/libcompat/4.3/rexec.c @@ -356,7 +356,7 @@ retry: 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); |