mirror of
https://github.com/ilyakooo0/urbit.git
synced 2025-01-04 13:19:48 +03:00
vere: replace dprintf (missing on MingW) with snprintf+write
This commit is contained in:
parent
d31d6f656f
commit
6ed4b7077b
@ -1605,11 +1605,12 @@ _http_write_ports_file(u3_httd* htd_u, c3_c *pax_c)
|
|||||||
|
|
||||||
u3_http* htp_u = htd_u->htp_u;
|
u3_http* htp_u = htd_u->htp_u;
|
||||||
|
|
||||||
|
c3_c temp[32];
|
||||||
while ( 0 != htp_u ) {
|
while ( 0 != htp_u ) {
|
||||||
if ( 0 < htp_u->por_s ) {
|
if ( 0 < htp_u->por_s ) {
|
||||||
dprintf(por_i, "%u %s %s\n", htp_u->por_s,
|
write(por_i, temp, snprintf(temp, 32, "%u %s %s\n", htp_u->por_s,
|
||||||
(c3y == htp_u->sec) ? "secure" : "insecure",
|
(c3y == htp_u->sec) ? "secure" : "insecure",
|
||||||
(c3y == htp_u->lop) ? "loopback" : "public");
|
(c3y == htp_u->lop) ? "loopback" : "public"));
|
||||||
}
|
}
|
||||||
|
|
||||||
htp_u = htp_u->nex_u;
|
htp_u = htp_u->nex_u;
|
||||||
|
Loading…
Reference in New Issue
Block a user