about summary refs log tree commit diff
path: root/db/hash/hash.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-09-23 14:02:16 +0000
committerUlrich Drepper <drepper@redhat.com>1998-09-23 14:02:16 +0000
commit24fd4cc4512102239f408ad965c7d65229be90d3 (patch)
treecccbe271bb9e2373a4beae0b0ae58773619b7856 /db/hash/hash.c
parent1cd9c90dc94714b358b7f968122f00088c852763 (diff)
downloadglibc-24fd4cc4512102239f408ad965c7d65229be90d3.tar.gz
glibc-24fd4cc4512102239f408ad965c7d65229be90d3.tar.xz
glibc-24fd4cc4512102239f408ad965c7d65229be90d3.zip
Update.
1998-09-23 13:52  Ulrich Drepper  <drepper@cygnus.com>

	* Makeconfig (all-subdirs): Add db.
	* Versions.def: Add definition for libdb1.
	* shlib-versions: Add definitions for libdb1.
	* db/Makefile (extra-libs): Replace by libdb1.
	(libdb-routines): Rename to libdb1-routines.
	(headers): Rename to db1-headers.
	(distribute): Add $(db1-headers).
	(install-others): Define to install symlink libdb.so.NN and the
	$(db1-headers).
	(CPPFLAGS): Add -USE_LIBDB1
	Remove rules to build makedb.
	* db/Versions: Rename libdb to libdb1.
	* include/db.h: If USE_LIBDB1 is defined include db/db.h.

	* scripts/versions.awk: Recognize digits in library names.

	* db/btree/bt_open.c: Fix compiler warnings.
	* db/btree/bt_put.c: Likewise.
	* db/btree/bt_split.c: Likewise.
	* db/hash/hash.c: Likewise.
	* db/hash/hash_bigkey.c: Likewise.
	* db/recno/rec_close.c: Likewise.
Diffstat (limited to 'db/hash/hash.c')
-rw-r--r--db/hash/hash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/db/hash/hash.c b/db/hash/hash.c
index 4ccb992bb7..99592eac51 100644
--- a/db/hash/hash.c
+++ b/db/hash/hash.c
@@ -873,7 +873,7 @@ hash_realloc(p_ptr, oldsize, newsize)
 {
 	register void *p;
 
-	if (p = malloc(newsize)) {
+	if ((p = malloc(newsize))) {
 		memmove(p, *p_ptr, oldsize);
 		memset((char *)p + oldsize, 0, newsize - oldsize);
 		free(*p_ptr);