Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
e4817a38
Commit
e4817a38
authored
Aug 03, 2007
by
msvensson@pilot.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update after merge, change "byte" and "gptr" into "uchar" and "uchar*"
parent
7afa0163
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
client/mysqltest.c
client/mysqltest.c
+5
-5
No files found.
client/mysqltest.c
View file @
e4817a38
...
...
@@ -1024,7 +1024,7 @@ void cat_file(DYNAMIC_STRING* ds, const char* filename)
if
((
fd
=
my_open
(
filename
,
O_RDONLY
,
MYF
(
0
)))
<
0
)
die
(
"Failed to open file %s"
,
filename
);
while
((
len
=
my_read
(
fd
,
(
byte
*
)
&
buff
,
while
((
len
=
my_read
(
fd
,
(
uchar
*
)
&
buff
,
sizeof
(
buff
),
MYF
(
0
)))
>
0
)
{
char
*
p
=
buff
,
*
start
=
buff
;
...
...
@@ -1264,10 +1264,10 @@ int compare_files2(File fd, const char* filename2)
my_close
(
fd
,
MYF
(
0
));
die
(
"Failed to open second file: %s"
,
filename2
);
}
while
((
len
=
my_read
(
fd
,
(
byte
*
)
&
buff
,
while
((
len
=
my_read
(
fd
,
(
uchar
*
)
&
buff
,
sizeof
(
buff
),
MYF
(
0
)))
>
0
)
{
if
((
len2
=
my_read
(
fd2
,
(
byte
*
)
&
buff2
,
if
((
len2
=
my_read
(
fd2
,
(
uchar
*
)
&
buff2
,
sizeof
(
buff2
),
MYF
(
0
)))
<
len
)
{
/* File 2 was smaller */
...
...
@@ -1287,7 +1287,7 @@ int compare_files2(File fd, const char* filename2)
break
;
}
}
if
(
!
error
&&
my_read
(
fd2
,
(
byte
*
)
&
buff2
,
if
(
!
error
&&
my_read
(
fd2
,
(
uchar
*
)
&
buff2
,
sizeof
(
buff2
),
MYF
(
0
))
>
0
)
{
/* File 1 was smaller */
...
...
@@ -4797,7 +4797,7 @@ static struct my_option my_long_options[] =
GET_BOOL
,
NO_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
{
"tail-lines"
,
OPT_TAIL_LINES
,
"Number of lines of the resul to include in a failure report"
,
(
gptr
*
)
&
opt_tail_lines
,
(
gptr
*
)
&
opt_tail_lines
,
0
,
(
uchar
**
)
&
opt_tail_lines
,
(
uchar
*
*
)
&
opt_tail_lines
,
0
,
GET_INT
,
REQUIRED_ARG
,
0
,
0
,
10000
,
0
,
0
,
0
},
#include "sslopt-longopts.h"
{
"test-file"
,
'x'
,
"Read test from/in this file (default stdin)."
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment