libDtSearch: Tidy up the LOCK and DBN macro madness
This commit is contained in:
@@ -46,9 +46,9 @@
|
||||
/* Check for optional key existence
|
||||
*/
|
||||
int
|
||||
d_keyexist(field DBN_PARM)
|
||||
d_keyexist(field , dbn)
|
||||
long field; /* key field constant */
|
||||
DBN_DECL /* database number */
|
||||
int dbn; /* database number */
|
||||
{
|
||||
int fld; /* field number */
|
||||
int rec, rn; /* record type of current record */
|
||||
@@ -63,7 +63,7 @@ DBN_DECL /* database number */
|
||||
RETURN( db_status );
|
||||
|
||||
/* ensure current record is valid for this field */
|
||||
d_crtype(&rn DBN_PARM);
|
||||
d_crtype(&rn , dbn);
|
||||
|
||||
if (rec != NUM2INT(rn - RECMARK, rt_offset))
|
||||
RETURN( dberr(S_BADFIELD) );
|
||||
|
||||
Reference in New Issue
Block a user