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
e4e801d4
Commit
e4e801d4
authored
Jan 17, 2017
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
connect: compilation errors and few obvious bugs
parent
3e589d4b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
storage/connect/filamzip.cpp
storage/connect/filamzip.cpp
+4
-4
storage/connect/ioapi.h
storage/connect/ioapi.h
+3
-2
No files found.
storage/connect/filamzip.cpp
View file @
e4e801d4
...
...
@@ -97,7 +97,7 @@ bool ZIPUTIL::WildMatch(PSZ pat, PSZ str) {
if
(
!*++
pat
)
return
TRUE
;
goto
loopStart
;
default:
if
(
mapCaseTable
[
*
s
]
!=
mapCaseTable
[
*
p
])
if
(
mapCaseTable
[
(
unsigned
)
*
s
]
!=
mapCaseTable
[(
unsigned
)
*
p
])
goto
starCheck
;
break
;
}
/* endswitch */
...
...
@@ -151,7 +151,7 @@ int ZIPUTIL::findEntry(PGLOBAL g, bool next)
if
(
rc
==
UNZ_END_OF_LIST_OF_FILE
)
return
RC_EF
;
else
if
(
rc
!=
UNZ_OK
)
{
sprintf
(
g
->
Message
,
"unzGoToNextFile rc = "
,
rc
);
sprintf
(
g
->
Message
,
"unzGoToNextFile rc =
%d
"
,
rc
);
return
RC_FX
;
}
// endif rc
...
...
@@ -261,7 +261,7 @@ bool ZIPUTIL::OpenTable(PGLOBAL g, MODE mode, char *fn)
fp
->
Memory
=
memory
;
fp
->
Mode
=
mode
;
fp
->
File
=
this
;
fp
->
Handle
=
NULL
;
fp
->
Handle
=
0
;
}
// endif fp
}
else
...
...
@@ -297,7 +297,7 @@ bool ZIPUTIL::openEntry(PGLOBAL g)
memory
=
new
char
[
size
+
1
];
if
((
rc
=
unzReadCurrentFile
(
zipfile
,
memory
,
size
))
<
0
)
{
sprintf
(
g
->
Message
,
"unzReadCurrentFile rc = "
,
rc
);
sprintf
(
g
->
Message
,
"unzReadCurrentFile rc =
%d
"
,
rc
);
unzCloseCurrentFile
(
zipfile
);
free
(
memory
);
memory
=
NULL
;
...
...
storage/connect/ioapi.h
View file @
e4e801d4
...
...
@@ -129,8 +129,9 @@ extern "C" {
#endif
#endif
#ifndef OF
#define OF(args) args
#endif
typedef
voidpf
(
ZCALLBACK
*
open_file_func
)
OF
((
voidpf
opaque
,
const
char
*
filename
,
int
mode
));
typedef
uLong
(
ZCALLBACK
*
read_file_func
)
OF
((
voidpf
opaque
,
voidpf
stream
,
void
*
buf
,
uLong
size
));
...
...
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