From 86bafc98389a4a3996e87db987bac4c6702278a8 Mon Sep 17 00:00:00 2001 From: Liam Fitzgerald Date: Tue, 1 Feb 2022 20:47:55 -0600 Subject: [PATCH] urbit: unify path format --- pkg/urbit/vere/io/ames.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/pkg/urbit/vere/io/ames.c b/pkg/urbit/vere/io/ames.c index 2563fa6c9..2488e9592 100644 --- a/pkg/urbit/vere/io/ames.c +++ b/pkg/urbit/vere/io/ames.c @@ -1399,7 +1399,6 @@ static void _fine_bide(u3_pact* pac_u, u3_noun pax) { u3_ames* sam_u = pac_u->sam_u; u3_weak lis = u3h_get(sam_u->fin_s.bid_p, pax); - if ( u3_none == lis ) { lis = u3_nul; } @@ -1409,15 +1408,11 @@ static void _fine_bide(u3_pact* pac_u, u3_noun pax) u3l_log("put in hashtable\n"); u3m_p("hashtable", new); - u3_noun car, res; - u3x_cell(pax, &car, &res); - u3_noun our = u3dc("scot", 'p', u3i_chubs(2, sam_u->car_u.pir_u->who_d)); - u3_noun pat = u3nt(car, our, res); - u3h_put(sam_u->fin_s.bid_p, pat, new); - u3m_p("pat", pat); + u3h_put(sam_u->fin_s.bid_p, pax, new); + u3m_p("pax", pax); - u3_noun cad = u3nc(c3__bide, pat); + u3_noun cad = u3nc(c3__bide, pax); u3_noun wir = u3nc(c3__fine, u3_nul); u3_ovum* ovo_u = u3_ovum_init(0, c3__ames, u3k(wir), u3k(cad)); u3_auto_plan(&sam_u->car_u, ovo_u); @@ -1437,6 +1432,7 @@ static void _fine_pack_scry_cb(void* vod_p, u3_noun nun) u3_ames* sam_u = pac_u->sam_u; u3_weak pas = u3r_at(7, nun); u3_noun pax = u3do("stab", u3i_string(pac_u->req_u.pat_c)); + u3m_p("pax", pax); if(pas == u3_none) { // TODO: send %bide u3l_log("no result, bailing\n");