summaryrefslogtreecommitdiff
path: root/myisammrg
diff options
context:
space:
mode:
authormonty@hundin.mysql.fi <>2002-06-28 09:18:23 +0300
committermonty@hundin.mysql.fi <>2002-06-28 09:18:23 +0300
commitade20c5b19b3627a10ee4e29e23cc9e9ceef1f64 (patch)
treecc96a38fba045126d5ddd2d125e830e1c2786a7e /myisammrg
parentddc8c5403ef7207a19381e62b89caedb1d899090 (diff)
downloadmariadb-git-ade20c5b19b3627a10ee4e29e23cc9e9ceef1f64.tar.gz
Indentation cleanup & new comments
Diffstat (limited to 'myisammrg')
-rw-r--r--myisammrg/myrg_delete.c6
-rw-r--r--myisammrg/myrg_rsame.c4
-rw-r--r--myisammrg/myrg_update.c2
-rw-r--r--myisammrg/myrg_write.c2
4 files changed, 6 insertions, 8 deletions
diff --git a/myisammrg/myrg_delete.c b/myisammrg/myrg_delete.c
index 7aee0c20793..8b89ed62ac1 100644
--- a/myisammrg/myrg_delete.c
+++ b/myisammrg/myrg_delete.c
@@ -18,12 +18,10 @@
#include "myrg_def.h"
-int myrg_delete(
-MYRG_INFO *info,
-const byte *record)
+int myrg_delete(MYRG_INFO *info, const byte *record)
{
if (!info->current_table)
- return my_errno=HA_ERR_NO_ACTIVE_RECORD ;
+ return (my_errno= HA_ERR_NO_ACTIVE_RECORD);
return mi_delete(info->current_table->table,record);
}
diff --git a/myisammrg/myrg_rsame.c b/myisammrg/myrg_rsame.c
index 2aa2fd78489..f6b2164dc21 100644
--- a/myisammrg/myrg_rsame.c
+++ b/myisammrg/myrg_rsame.c
@@ -19,10 +19,10 @@
int myrg_rsame(MYRG_INFO *info,byte *record,int inx)
{
if (inx) /* not yet used, should be 0 */
- return my_errno=HA_ERR_WRONG_INDEX;
+ return (my_errno=HA_ERR_WRONG_INDEX);
if (!info->current_table)
- return my_errno=HA_ERR_NO_ACTIVE_RECORD;
+ return (my_errno=HA_ERR_NO_ACTIVE_RECORD);
return mi_rsame(info->current_table->table,record,inx);
}
diff --git a/myisammrg/myrg_update.c b/myisammrg/myrg_update.c
index 0d4fc0bf215..7b9f614b965 100644
--- a/myisammrg/myrg_update.c
+++ b/myisammrg/myrg_update.c
@@ -21,7 +21,7 @@
int myrg_update(register MYRG_INFO *info,const byte *oldrec, byte *newrec)
{
if (!info->current_table)
- return my_errno=HA_ERR_NO_ACTIVE_RECORD;
+ return (my_errno=HA_ERR_NO_ACTIVE_RECORD);
return mi_update(info->current_table->table,oldrec,newrec);
}
diff --git a/myisammrg/myrg_write.c b/myisammrg/myrg_write.c
index f911355aed5..0f191edc23c 100644
--- a/myisammrg/myrg_write.c
+++ b/myisammrg/myrg_write.c
@@ -26,5 +26,5 @@ int myrg_write(register MYRG_INFO *info, byte *rec)
else if (info->merge_insert_method == MERGE_INSERT_TO_LAST)
return mi_write(info->end_table[-1].table,rec);
else /* unsupported insertion method */
- return my_errno=HA_ERR_WRONG_COMMAND;
+ return (my_errno= HA_ERR_WRONG_COMMAND);
}