summaryrefslogtreecommitdiff
path: root/myisam/ft_dump.c
diff options
context:
space:
mode:
authormonty@hundin.mysql.fi <>2001-05-31 14:07:17 +0300
committermonty@hundin.mysql.fi <>2001-05-31 14:07:17 +0300
commitb7c3a28149c2e3a7fddb0f0b99104c87c980c5bf (patch)
treef19c68fd5b7d68ad4f7919cb8e6eae7d6961956e /myisam/ft_dump.c
parentaec1ed037a7debd0ec9d24acdcc152a7569bcae3 (diff)
downloadmariadb-git-b7c3a28149c2e3a7fddb0f0b99104c87c980c5bf.tar.gz
Removed compiler warnings.
Added preliminary handling of symlinks in MyISAM. When using myisamchk to check tables with --force, don't repair tables that are marked as 'not closed' if they are ok. Change fn_format() to use my_real_path and my_symlink
Diffstat (limited to 'myisam/ft_dump.c')
-rw-r--r--myisam/ft_dump.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/myisam/ft_dump.c b/myisam/ft_dump.c
index 62e2a67dfc2..bb308188969 100644
--- a/myisam/ft_dump.c
+++ b/myisam/ft_dump.c
@@ -31,11 +31,11 @@ static char *query=NULL;
int main(int argc,char *argv[])
{
int error=0;
- uint keylen, inx, doc_cnt;
+ uint keylen, inx, doc_cnt=0;
float weight;
- double gws, min_gws, avg_gws=0;
+ double gws, min_gws=0, avg_gws=0;
MI_INFO *info;
- char buf[MAX], buf2[MAX], buf_maxlen[MAX], buf_min_gws[MAX], *s;
+ char buf[MAX], buf2[MAX], buf_maxlen[MAX], buf_min_gws[MAX];
ulong total=0, maxlen=0, uniq=0, max_doc_cnt=0;
#ifdef EVAL_RUN
uint cnt;
@@ -111,8 +111,8 @@ int main(int argc,char *argv[])
cnt=*(byte *)(info->lastkey+keylen);
#endif /* EVAL_RUN */
- snprintf(buf,MAX,"%.*s",keylen,info->lastkey+1);
- for (s=buf;*s;s++) *s=tolower(*s);
+ snprintf(buf,MAX,"%.*s",(int) keylen,info->lastkey+1);
+ casedn_str(buf);
total++;
if (count || stats)