[Asterisk-cvs] asterisk/db1-ast/btree bt_delete.c,1.1,1.2 bt_put.c,1.1,1.2 bt_seq.c,1.1,1.2 bt_split.c,1.1,1.2

markster at lists.digium.com markster at lists.digium.com
Sun Nov 23 15:48:12 CST 2003


Update of /usr/cvsroot/asterisk/db1-ast/btree
In directory mongoose.digium.com:/tmp/cvs-serv24780/db1-ast/btree

Modified Files:
	bt_delete.c bt_put.c bt_seq.c bt_split.c 
Log Message:
Various warning cleanups


Index: bt_delete.c
===================================================================
RCS file: /usr/cvsroot/asterisk/db1-ast/btree/bt_delete.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- bt_delete.c	4 Jan 2003 18:53:14 -0000	1.1
+++ bt_delete.c	23 Nov 2003 22:14:32 -0000	1.2
@@ -150,7 +150,7 @@
 	EPG *e;
 	EPGNO *parent;
 	PAGE *h;
-	indx_t index;
+	indx_t index = 0;
 	pgno_t pgno;
 	recno_t nextpg, prevpg;
 	int exact, level;

Index: bt_put.c
===================================================================
RCS file: /usr/cvsroot/asterisk/db1-ast/btree/bt_put.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- bt_put.c	4 Jan 2003 18:53:14 -0000	1.1
+++ bt_put.c	23 Nov 2003 22:14:32 -0000	1.2
@@ -72,7 +72,7 @@
 {
 	BTREE *t;
 	DBT tkey, tdata;
-	EPG *e;
+	EPG *e = 0;
 	PAGE *h;
 	indx_t index, nxtindex;
 	pgno_t pg;

Index: bt_seq.c
===================================================================
RCS file: /usr/cvsroot/asterisk/db1-ast/btree/bt_seq.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- bt_seq.c	4 Jan 2003 18:53:14 -0000	1.1
+++ bt_seq.c	23 Nov 2003 22:14:32 -0000	1.2
@@ -244,7 +244,7 @@
 {
 	CURSOR *c;
 	PAGE *h;
-	indx_t index;
+	indx_t index = 0;
 	pgno_t pg;
 	int exact;
 

Index: bt_split.c
===================================================================
RCS file: /usr/cvsroot/asterisk/db1-ast/btree/bt_split.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- bt_split.c	4 Jan 2003 18:53:14 -0000	1.1
+++ bt_split.c	23 Nov 2003 22:14:32 -0000	1.2
@@ -87,14 +87,14 @@
 	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 @@
 	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;




More information about the svn-commits mailing list