u3: stop using u3P.dir_c outside of events.c

This commit is contained in:
Joe Bryan 2022-12-07 17:22:33 -05:00
parent 4620212260
commit bceb9cde4a
2 changed files with 4 additions and 2 deletions

View File

@ -1867,6 +1867,8 @@ u3m_boot(c3_c* dir_c, size_t len_i)
{
c3_o nuu_o;
u3C.dir_c = dir_c;
/* Activate the loom.
*/
u3m_init(len_i);

View File

@ -200,7 +200,7 @@ _serf_grab(u3_noun sac)
c3_c* wen_c = u3r_string(wen);
c3_c nam_c[2048];
snprintf(nam_c, 2048, "%s/.urb/put/mass", u3P.dir_c);
snprintf(nam_c, 2048, "%s/.urb/put/mass", u3C.dir_c);
struct stat st;
if ( -1 == stat(nam_c, &st) ) {
@ -839,7 +839,7 @@ _serf_writ_live_exit(u3_serf* sef_u, c3_w cod_w)
c3_c* wen_c = u3r_string(wen);
c3_c nam_c[2048];
snprintf(nam_c, 2048, "%s/.urb/put/profile", u3P.dir_c);
snprintf(nam_c, 2048, "%s/.urb/put/profile", u3C.dir_c);
struct stat st;
if ( -1 == stat(nam_c, &st) ) {