mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2024-11-22 12:48:26 +02:00
Updated code calling opk_extract_file().
I changed the return type from char* to void* in libopk, now updating the gmenu2x code to match.
This commit is contained in:
parent
90ec4b9ace
commit
bcbedc8f40
@ -34,7 +34,7 @@ SDL_Surface *loadPNG(const std::string &path) {
|
||||
#ifdef HAVE_LIBOPK
|
||||
std::string::size_type pos;
|
||||
struct ParserData *pdata = NULL;
|
||||
char *buffer = NULL, *param;
|
||||
void *buffer = NULL, *param;
|
||||
#endif
|
||||
|
||||
// Create and initialize the top-level libpng struct.
|
||||
|
@ -387,7 +387,8 @@ void LinkApp::showManual() {
|
||||
return;
|
||||
}
|
||||
|
||||
buf = ptr = opk_extract_file(pdata, manual.c_str());
|
||||
buf = ptr = reinterpret_cast<char *>(
|
||||
opk_extract_file(pdata, manual.c_str()));
|
||||
opk_close(pdata);
|
||||
|
||||
if (!buf) {
|
||||
|
Loading…
Reference in New Issue
Block a user