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
@ -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…
x
Reference in New Issue
Block a user