1
0
mirror of git://projects.qi-hardware.com/gmenu2x.git synced 2024-11-26 03:06:15 +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:
Maarten ter Huurne 2013-02-05 19:05:44 +01:00
parent 90ec4b9ace
commit bcbedc8f40
2 changed files with 3 additions and 2 deletions

View File

@ -34,7 +34,7 @@ SDL_Surface *loadPNG(const std::string &path) {
#ifdef HAVE_LIBOPK #ifdef HAVE_LIBOPK
std::string::size_type pos; std::string::size_type pos;
struct ParserData *pdata = NULL; struct ParserData *pdata = NULL;
char *buffer = NULL, *param; void *buffer = NULL, *param;
#endif #endif
// Create and initialize the top-level libpng struct. // Create and initialize the top-level libpng struct.

View File

@ -387,7 +387,8 @@ void LinkApp::showManual() {
return; 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); opk_close(pdata);
if (!buf) { if (!buf) {