summaryrefslogtreecommitdiff
path: root/extra
diff options
context:
space:
mode:
authormonty@mysql.com <>2005-02-25 16:53:22 +0200
committermonty@mysql.com <>2005-02-25 16:53:22 +0200
commit0a6b7aedb2cec716b98349765bfa369354787b25 (patch)
tree9b48fa5a8476d449ea4512314b86f9704517cd0c /extra
parentcd78e701a5c83394c360f6ba9a1783c7b950e8ee (diff)
downloadmariadb-git-0a6b7aedb2cec716b98349765bfa369354787b25.tar.gz
Remove compiler warnings and remove not used variables
(Found during build process)
Diffstat (limited to 'extra')
-rw-r--r--extra/comp_err.c4
-rw-r--r--extra/perror.c3
2 files changed, 4 insertions, 3 deletions
diff --git a/extra/comp_err.c b/extra/comp_err.c
index a554fc2437e..85833999d5c 100644
--- a/extra/comp_err.c
+++ b/extra/comp_err.c
@@ -332,13 +332,13 @@ static int create_sys_files(struct languages *lang_head,
head[30]= csnum;
my_fseek(to, 0l, MY_SEEK_SET, MYF(0));
- if (my_fwrite(to, head, HEADER_LENGTH, MYF(MY_WME | MY_FNABP)))
+ if (my_fwrite(to, (byte*) head, HEADER_LENGTH, MYF(MY_WME | MY_FNABP)))
goto err;
for (i= 0; i < row_count; i++)
{
int2store(head, file_pos[i]);
- if (my_fwrite(to, head, 2, MYF(MY_WME | MY_FNABP)))
+ if (my_fwrite(to, (byte*) head, 2, MYF(MY_WME | MY_FNABP)))
goto err;
}
my_fclose(to, MYF(0));
diff --git a/extra/perror.c b/extra/perror.c
index 6e632b20d96..d68f5230e4a 100644
--- a/extra/perror.c
+++ b/extra/perror.c
@@ -250,7 +250,8 @@ int main(int argc,char *argv[])
'Unknown Error' (without regard to case).
*/
if (msg &&
- my_strnncoll(&my_charset_latin1, msg, 13, "Unknown Error", 13) &&
+ my_strnncoll(&my_charset_latin1, (const uchar*) msg, 13,
+ (const uchar*) "Unknown Error", 13) &&
(!unknown_error || strcmp(msg, unknown_error)))
{
found=1;