8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-24 10:43:03 +01:00

Code cleaning (Thanks to Claudio)

This commit is contained in:
brodsom 2003-09-07 00:48:02 +00:00
parent 86809c12a3
commit d1f86ac0bf
2 changed files with 4 additions and 13 deletions

View File

@ -314,22 +314,13 @@ int EXT_get(RSB rsb)
switch (rsb->rsb_type) {
case rsb_ext_sequential:
if (get_sequential(rsb))
return TRUE;
else
return FALSE;
return (get_sequential(rsb)) ? TRUE : FALSE;
case rsb_ext_indexed:
if (get_indexed(rsb))
return TRUE
else
return FALSE;
return (get_indexed(rsb)) ? TRUE : FALSE;
case rsb_ext_dbkey:
if (get_dbkey(rsb))
return TRUE
else
return FALSE
return (get_dbkey(rsb)) ? TRUE : FALSE;
default:
IBERROR(181); /* msg 181 external access type not implemented */

View File

@ -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 */
*tmp++ = gds_arg_number;
number = *tmp++ = *vms_status++;
flag = (number == 1) ? false : true;
flag = (number != 1);
sprintf(pw2, "%%x%x", number);
while (*pw2)
++pw2;