SCCS-vsn: lib/libc/db/btree/bt_delete.c 5.6
*/
#if defined(LIBC_SCCS) && !defined(lint)
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)bt_delete.c 5.5 (Berkeley) %G%";
+static char sccsid[] = "@(#)bt_delete.c 5.6 (Berkeley) %G%";
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>
* the delete cursor bit to have been set requires that the
* scan be initialized, so no reason to check.
*/
* the delete cursor bit to have been set requires that the
* scan be initialized, so no reason to check.
*/
+ if (!ISSET(t, BTF_SEQINIT))
+ goto einval;
status = ISSET(t, BTF_DELCRSR) ?
RET_SPECIAL : __bt_crsrdel(t, &t->bt_bcursor);
break;
default:
status = ISSET(t, BTF_DELCRSR) ?
RET_SPECIAL : __bt_crsrdel(t, &t->bt_bcursor);
break;
default:
return (RET_ERROR);
}
if (status == RET_SUCCESS)
return (RET_ERROR);
}
if (status == RET_SUCCESS)