Merge branch 'master' of github.com:urbit/urbit

This commit is contained in:
C. Guy Yarvin 2013-12-17 11:36:21 -08:00
commit 68b25a7f18
5 changed files with 12 additions and 4 deletions

View File

@ -195,7 +195,6 @@ _ho_mop_decimal(c3_c *buf_c, u2_noun num)
mpz_t num_mp;
c3_w len_w;
mpz_init(num_mp);
u2_mp(num_mp, num);
len_w = mpz_sizeinbase(num_mp, 10);

View File

@ -40,6 +40,7 @@
#else
#error "port: sha256"
#endif
free(fat_y);
return u2_rl_bytes(wir_r, 32, dig_y);
}
}

View File

@ -1149,6 +1149,7 @@ _lo_staf(u2_reck* rec_u, c3_l key_l)
u2_noun txt;
snprintf(ful_c, 2048, "%s/.urbit/%s.txt", hom_c, gum_c);
free(gum_c);
u2z(gum);
txt = u2_walk_safe(ful_c);
@ -1343,6 +1344,7 @@ _lo_rest(u2_reck* rec_u)
u2_noun ent = u2_dc("scot", c3__ud, rec_u->ent_w);
c3_c* ent_c = u2_cr_string(ent);
uL(fprintf(uH, "rest: checkpoint to event %s\n", ent_c));
free(ent_c);
}
// Open the fscking file. Does it even exist?
@ -1484,6 +1486,7 @@ _lo_rest(u2_reck* rec_u)
end_w = (tar_w - lar_u.len_w);
if ( ent_w < old_w ) {
free(img_w);
break;
}

View File

@ -46,7 +46,7 @@ u2_term_io_init()
{
if ( u2_no == u2_Host.ops_u.dem ) {
u2_utty* uty_u = malloc(sizeof(u2_utty));
c3_i fid_i = 0; // stdin, yes we write to it...
c3_i fid_i = 0;
// Initialize event processing. Rawdog it.
//

View File

@ -138,6 +138,7 @@ u2_unix_acquire(c3_c* pax_c)
#endif
}
fclose(loq_u);
free(paf_c);
}
/* u2_unix_release(): release a lockfile.
@ -530,6 +531,8 @@ _unix_dir_update(u2_udir* dir_u, DIR* rid_u)
dir_u->dis_u = dis_u;
closedir(red_u);
} else {
free(pax_c);
}
}
}
@ -1144,12 +1147,14 @@ u2_unix_ef_look(void)
for ( won = u2A->own; u2_nul != won; won = u2t(won) ) {
u2_noun who = u2h(won);
mpz_t who_mp;
c3_w cmp_w;
u2_cr_mp(who_mp, who);
if ( 0 == mpz_cmp(who_mp, hot_u->who_mp) ) {
cmp_w = mpz_cmp(who_mp, hot_u->who_mp);
mpz_clear(who_mp);
if ( 0 == cmp_w ) {
break;
}
mpz_clear(who_mp);
}
if ( u2_nul == won ) {