mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-24 23:23:03 +01:00
Code cleaning (Thanks to Claudio)
This commit is contained in:
parent
86809c12a3
commit
d1f86ac0bf
@ -314,22 +314,13 @@ int EXT_get(RSB rsb)
|
|||||||
|
|
||||||
switch (rsb->rsb_type) {
|
switch (rsb->rsb_type) {
|
||||||
case rsb_ext_sequential:
|
case rsb_ext_sequential:
|
||||||
if (get_sequential(rsb))
|
return (get_sequential(rsb)) ? TRUE : FALSE;
|
||||||
return TRUE;
|
|
||||||
else
|
|
||||||
return FALSE;
|
|
||||||
|
|
||||||
case rsb_ext_indexed:
|
case rsb_ext_indexed:
|
||||||
if (get_indexed(rsb))
|
return (get_indexed(rsb)) ? TRUE : FALSE;
|
||||||
return TRUE
|
|
||||||
else
|
|
||||||
return FALSE;
|
|
||||||
|
|
||||||
case rsb_ext_dbkey:
|
case rsb_ext_dbkey:
|
||||||
if (get_dbkey(rsb))
|
return (get_dbkey(rsb)) ? TRUE : FALSE;
|
||||||
return TRUE
|
|
||||||
else
|
|
||||||
return FALSE
|
|
||||||
|
|
||||||
default:
|
default:
|
||||||
IBERROR(181); /* msg 181 external access type not implemented */
|
IBERROR(181); /* msg 181 external access type not implemented */
|
||||||
|
@ -456,7 +456,7 @@ int MAP_status_to_gds(ISC_STATUS * vms_status, ISC_STATUS * gds_status)
|
|||||||
BUGCHECK(235); /* msg 235 Unimplemented conversion, FAO directive X,U */
|
BUGCHECK(235); /* msg 235 Unimplemented conversion, FAO directive X,U */
|
||||||
*tmp++ = gds_arg_number;
|
*tmp++ = gds_arg_number;
|
||||||
number = *tmp++ = *vms_status++;
|
number = *tmp++ = *vms_status++;
|
||||||
flag = (number == 1) ? false : true;
|
flag = (number != 1);
|
||||||
sprintf(pw2, "%%x%x", number);
|
sprintf(pw2, "%%x%x", number);
|
||||||
while (*pw2)
|
while (*pw2)
|
||||||
++pw2;
|
++pw2;
|
||||||
|
Loading…
Reference in New Issue
Block a user