diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-11-23 22:14:32 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-11-23 22:14:32 +0000 |
commit | 54b6732e7a947ca6ea41a4ac2b6c6f8b9844af7b (patch) | |
tree | 3abbcfbfaf4182b264577213a5ce992548a32b40 /db1-ast/btree | |
parent | c5141472b8fb52723d319e61f197f83928b140eb (diff) |
Various warning cleanups
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1782 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'db1-ast/btree')
-rwxr-xr-x | db1-ast/btree/bt_delete.c | 2 | ||||
-rwxr-xr-x | db1-ast/btree/bt_put.c | 2 | ||||
-rwxr-xr-x | db1-ast/btree/bt_seq.c | 2 | ||||
-rwxr-xr-x | db1-ast/btree/bt_split.c | 8 |
4 files changed, 7 insertions, 7 deletions
diff --git a/db1-ast/btree/bt_delete.c b/db1-ast/btree/bt_delete.c index b654c9f1f..9908a7c3e 100755 --- a/db1-ast/btree/bt_delete.c +++ b/db1-ast/btree/bt_delete.c @@ -150,7 +150,7 @@ __bt_stkacq(t, hp, c) EPG *e; EPGNO *parent; PAGE *h; - indx_t index; + indx_t index = 0; pgno_t pgno; recno_t nextpg, prevpg; int exact, level; diff --git a/db1-ast/btree/bt_put.c b/db1-ast/btree/bt_put.c index 15309c66e..3f3807531 100755 --- a/db1-ast/btree/bt_put.c +++ b/db1-ast/btree/bt_put.c @@ -72,7 +72,7 @@ __bt_put(dbp, key, data, flags) { BTREE *t; DBT tkey, tdata; - EPG *e; + EPG *e = 0; PAGE *h; indx_t index, nxtindex; pgno_t pg; diff --git a/db1-ast/btree/bt_seq.c b/db1-ast/btree/bt_seq.c index 90f896036..5ba7b0301 100755 --- a/db1-ast/btree/bt_seq.c +++ b/db1-ast/btree/bt_seq.c @@ -244,7 +244,7 @@ __bt_seqadv(t, ep, flags) { CURSOR *c; PAGE *h; - indx_t index; + indx_t index = 0; pgno_t pg; int exact; diff --git a/db1-ast/btree/bt_split.c b/db1-ast/btree/bt_split.c index 4119ccbf7..e6bd540b4 100755 --- a/db1-ast/btree/bt_split.c +++ b/db1-ast/btree/bt_split.c @@ -87,14 +87,14 @@ __bt_split(t, sp, key, data, flags, ilen, argskip) size_t ilen; u_int32_t argskip; { - BINTERNAL *bi; - BLEAF *bl, *tbl; + BINTERNAL *bi = 0; + BLEAF *bl = 0, *tbl; DBT a, b; EPGNO *parent; PAGE *h, *l, *r, *lchild, *rchild; indx_t nxtindex; u_int16_t skip; - u_int32_t n, nbytes, nksize; + u_int32_t n, nbytes, nksize = 0; int parentsplit; char *dest; @@ -622,7 +622,7 @@ bt_psplit(t, h, l, r, pskip, ilen) CURSOR *c; RLEAF *rl; PAGE *rval; - void *src; + void *src = 0; indx_t full, half, nxt, off, skip, top, used; u_int32_t nbytes; int bigkeycnt, isbigkey; |