mirror of
https://github.com/asterisk/asterisk.git
synced 2026-01-06 18:13:45 +00:00
Various warning cleanups
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1782 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -110,8 +110,8 @@ __get_buf(hashp, addr, prev_bp, newpage)
|
||||
{
|
||||
register BUFHEAD *bp;
|
||||
register u_int32_t is_disk_mask;
|
||||
register int is_disk, segment_ndx;
|
||||
SEGMENT segp;
|
||||
register int is_disk, segment_ndx = 0;
|
||||
SEGMENT segp = 0;
|
||||
|
||||
is_disk = 0;
|
||||
is_disk_mask = 0;
|
||||
|
||||
@@ -665,7 +665,7 @@ static u_int16_t
|
||||
overflow_page(hashp)
|
||||
HTAB *hashp;
|
||||
{
|
||||
register u_int32_t *freep;
|
||||
register u_int32_t *freep = 0;
|
||||
register int max_free, offset, splitnum;
|
||||
u_int16_t addr;
|
||||
int bit, first_page, free_bit, free_page, i, in_use_bits, j;
|
||||
|
||||
@@ -63,7 +63,7 @@ __rec_open(fname, flags, mode, openinfo, dflags)
|
||||
DB *dbp;
|
||||
PAGE *h;
|
||||
struct stat sb;
|
||||
int rfd, sverrno;
|
||||
int rfd = 0, sverrno;
|
||||
|
||||
/* Open the user's file -- if this fails, we're done. */
|
||||
if (fname != NULL && (rfd = open(fname, flags, mode)) < 0)
|
||||
|
||||
Reference in New Issue
Block a user