use the pointer name, not the address of its first element
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Tue, 9 Apr 1991 11:55:06 +0000 (03:55 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Tue, 9 Apr 1991 11:55:06 +0000 (03:55 -0800)
SCCS-vsn: lib/libc/db/btree/bt_search.c 5.2

usr/src/lib/libc/db/btree/bt_search.c

index d3daae4..5effbd6 100644 (file)
@@ -9,7 +9,7 @@
  */
 
 #if defined(LIBC_SCCS) && !defined(lint)
  */
 
 #if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)bt_search.c        5.1 (Berkeley) %G%";
+static char sccsid[] = "@(#)bt_search.c        5.2 (Berkeley) %G%";
 #endif /* LIBC_SCCS and not lint */
 
 #include <sys/types.h>
 #endif /* LIBC_SCCS and not lint */
 
 #include <sys/types.h>
@@ -146,7 +146,7 @@ _bt_searchr(t, key)
        static BTITEM item;
 
        /* do a binary search on the current page */
        static BTITEM item;
 
        /* do a binary search on the current page */
-       index = _bt_binsrch(t, &(key->data[0]));
+       index = _bt_binsrch(t, key->data);
 
        /*
         *  At this point, the binary search terminated because the endpoints
 
        /*
         *  At this point, the binary search terminated because the endpoints