Skip to content

Commit

Permalink
fix(*): fix compilation errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Water-Melon committed Mar 18, 2024
1 parent 1719a4a commit bca185a
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/mln_bignum.c
Original file line number Diff line number Diff line change
Expand Up @@ -947,7 +947,7 @@ MLN_FUNC_VOID(static inline, void, mln_bignum_seperate, \
MLN_FUNC(static inline, mln_u32_t, mln_bignum_witness, \
(mln_bignum_t *base, mln_bignum_t *prim), (base, prim), \
{
mln_u32_t pwr, i;
mln_u32_t pwr = 0, i;
mln_bignum_t tmp, new_x = {M_BIGNUM_POSITIVE, 0, {0}}, x, odd;
mln_bignum_t num = {M_BIGNUM_POSITIVE, 1, {0}};
num.data[0] = 1;
Expand Down
2 changes: 1 addition & 1 deletion src/mln_fec.c
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ MLN_FUNC(static, int, mln_fec_decode_body, \
(fec, fec_packet, buf, blen, packets, packlen, n, body_len), \
{
mln_u64_t mask = 0;
mln_u16_t seq_no, sn_base, protect_len = 0;
mln_u16_t seq_no, sn_base = 0, protect_len = 0;
mln_u16_t *pl, is_long = 0;
mln_u8ptr_t ptr, *p, *pend;
mln_string_t *t, *res, tmp;
Expand Down
2 changes: 1 addition & 1 deletion src/mln_prime_generator.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ MLN_FUNC(static inline, mln_u64_t, modular_expoinentiation, \
MLN_FUNC(static inline, mln_u32_t, witness, \
(mln_u32_t base, mln_u32_t prim), (base, prim), \
{
mln_u32_t pwr, odd;
mln_u32_t pwr = 0, odd = 0;
seperate(prim - 1, &pwr, &odd);
mln_u64_t new_x = 0, x = modular_expoinentiation(base, odd, prim);
mln_u32_t i;
Expand Down
2 changes: 1 addition & 1 deletion src/mln_regexp.c
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ MLN_FUNC(static, int, mln_match_here, \
matches);
}
if (c_n == M_REGEXP_LBRACE) {
int part = 1, min, max, existent = 0;
int part = 1, min = 0, max = 0, existent = 0;
int c, len = reglen, l = mln_get_length(regexp+steplen, reglen-steplen);
count = 0;
while (len > steplen) {
Expand Down
2 changes: 1 addition & 1 deletion src/mln_rsa.c
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,7 @@ MLN_FUNC(, int, mln_RSASSAPKCS1V15_verify, \
mln_size_t n = mln_bignum_get_length(&(pub->n)) << 2;
mln_u8_t hashval[32] = {0};
mln_size_t hlen;
mln_u32_t hash_type;
mln_u32_t hash_type = 0;

if (s->len % n) {
return -1;
Expand Down
2 changes: 1 addition & 1 deletion src/mln_thread_pool.c
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ MLN_FUNC(static, void *, mln_thread_pool_resource_remove, (void), (), {
* launcher
*/
MLN_FUNC(, int, mln_thread_pool_run, (struct mln_thread_pool_attr *tpattr), (tpattr), {
int rc;
int rc = 0;
mln_thread_pool_t *tpool;

if (tpattr->child_process_handler == NULL || \
Expand Down

0 comments on commit bca185a

Please sign in to comment.