summaryrefslogtreecommitdiff
path: root/isam
diff options
context:
space:
mode:
authorunknown <monty@hundin.mysql.fi>2001-10-31 20:28:43 +0200
committerunknown <monty@hundin.mysql.fi>2001-10-31 20:28:43 +0200
commit679e3810307de3f42619304430f31977ad8fdd83 (patch)
tree92b080e5371729d9f2b8777445095eb5e0545575 /isam
parent03f6fdd575f71aacd4b6e782c9df4b929f8222b1 (diff)
downloadmariadb-git-679e3810307de3f42619304430f31977ad8fdd83.tar.gz
Portability fixes
Diffstat (limited to 'isam')
-rw-r--r--isam/create.c5
-rw-r--r--isam/pack_isam.c2
2 files changed, 4 insertions, 3 deletions
diff --git a/isam/create.c b/isam/create.c
index c59b20d8b0c..fcf54ddc731 100644
--- a/isam/create.c
+++ b/isam/create.c
@@ -259,8 +259,9 @@ int nisam_create(const char *name,uint keys,N_KEYDEF *keyinfo,
(pointer == 3 && reclength >= 256L) ? (ulong) NI_POS_ERROR :
((ulong) reclength * (1L << (pointer*8)));
share.base.max_key_file_length= (share.base.key_reflength == 3 ?
- NI_POS_ERROR :
- (1L << (share.base.key_reflength*8))*512);
+ NI_POS_ERROR :
+ (ulong)
+ (1L << (share.base.key_reflength*8))*512);
share.base.min_block_length=
(share.base.pack_reclength+3 < N_EXTEND_BLOCK_LENGTH &&
! share.base.blobs) ?
diff --git a/isam/pack_isam.c b/isam/pack_isam.c
index c2cbb72cf74..3d8512847ae 100644
--- a/isam/pack_isam.c
+++ b/isam/pack_isam.c
@@ -288,7 +288,7 @@ static void usage(void)
-?, --help display this help and exit\n\
-V, --version output version information and exit\n");
print_defaults("my",load_default_groups);
-};
+}
/* reads options */
/* Initiates DEBUG - but no debugging here ! */