summaryrefslogtreecommitdiff
path: root/myisam
diff options
context:
space:
mode:
authormonty@hundin.mysql.fi <>2001-09-15 16:22:34 +0300
committermonty@hundin.mysql.fi <>2001-09-15 16:22:34 +0300
commit0d72e5440fdf6a2b99c36a9c8013bc2dc04ee23a (patch)
tree8783b1d57a27183a301b7fdfaaf671cf498a7e8e /myisam
parentc55cde7c1ca4acdb6b945c153905081a7075f91f (diff)
downloadmariadb-git-0d72e5440fdf6a2b99c36a9c8013bc2dc04ee23a.tar.gz
Portability fixes
Diffstat (limited to 'myisam')
-rw-r--r--myisam/ft_boolean_search.c4
-rw-r--r--myisam/ft_dump.c1
2 files changed, 4 insertions, 1 deletions
diff --git a/myisam/ft_boolean_search.c b/myisam/ft_boolean_search.c
index 3562e05006a..ef248b5d62b 100644
--- a/myisam/ft_boolean_search.c
+++ b/myisam/ft_boolean_search.c
@@ -153,7 +153,9 @@ int do_boolean(ALL_IN_ONE *aio, uint nested __attribute__((unused)),
if (selem->count==1) /* document's first match */
{
- sptr->yes=sptr->no=sptr->doc.weight=0;
+ sptr->yes=0;
+ sptr->no=0;
+ sptr->doc.weight=0;
sptr->aio=aio;
sptr->wno=0;
}
diff --git a/myisam/ft_dump.c b/myisam/ft_dump.c
index bb308188969..42439085132 100644
--- a/myisam/ft_dump.c
+++ b/myisam/ft_dump.c
@@ -17,6 +17,7 @@
/* Written by Sergei A. Golubchik, who has a shared copyright to this code */
#include "ftdefs.h"
+#include <getopt.h>
static void get_options(int argc,char *argv[]);
static void usage(char *argv[]);