mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-21 11:13:30 +00:00
In usr.bin/netstat/atalk.c, work around a clang false positive with
printf format warnings and conditional operators. MFC after: 1 week
This commit is contained in:
parent
d411ccb3b2
commit
288fcda320
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=228650
@ -81,7 +81,7 @@ static char mybuf[50];
|
||||
return("*");
|
||||
}
|
||||
}
|
||||
sprintf(mybuf,"%hu",ntohs(sat->sat_addr.s_net));
|
||||
sprintf(mybuf,"%hu",(short)ntohs(sat->sat_addr.s_net));
|
||||
return mybuf;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user