Skip to content

Commit

Permalink
ames: shp_u -> whu in _ames_put_dear
Browse files Browse the repository at this point in the history
  • Loading branch information
pkova committed Sep 11, 2023
1 parent 7aaa3a9 commit 4ac9875
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pkg/vere/io/ames.c
Original file line number Diff line number Diff line change
Expand Up @@ -2079,30 +2079,30 @@ _ames_put_dear(c3_c* ship, c3_w s_addr, c3_s port, void* context)
lan.pip_w = ntohl(s_addr);
lan.por_s = ntohs(port);

u3_noun shp_u = u3dc("slaw", c3__p, u3i_string(ship));
u3_noun whu = u3dc("slaw", c3__p, u3i_string(ship));

if (u3_nul == shp_u) {
if (u3_nul == whu) {
u3l_log("ames: strange ship from mdns: %s", ship);
return;
}

u3_noun our = u3i_chubs(2, sam_u->pir_u->who_d);
if (our == u3t(shp_u)) {
u3z(shp_u);
if (our == u3t(whu)) {
u3z(whu);
u3z(our);
return;
}

u3z(our);

u3_noun wir = u3nc(c3__ames, u3_nul);
u3_noun cad = u3nt(c3__dear, u3k(u3t(shp_u)), u3nc(c3n, u3_ames_encode_lane(lan)));
u3_noun cad = u3nt(c3__dear, u3k(u3t(whu)), u3nc(c3n, u3_ames_encode_lane(lan)));

u3_auto_peer(
u3_auto_plan(&sam_u->car_u,
u3_ovum_init(0, c3__a, wir, cad)),
0, 0, _mdns_dear_bail);
u3z(shp_u);
u3z(whu);
}

/* _ames_io_start(): initialize ames I/O.
Expand Down

0 comments on commit 4ac9875

Please sign in to comment.