properly typecast the function pointers
This commit is contained in:
parent
9be15cd3b3
commit
4e2192fd1c
1 changed files with 3 additions and 3 deletions
|
|
@ -30,9 +30,9 @@ int main(int argc, char* argv[])
|
|||
occupiedMem = (pFunc)GetProcessAddress((HMODULE) hndl, (char const*)"occupiedMem");
|
||||
#else /* OSX || NIX */
|
||||
hndl = (void*) dlopen((char const*)"./libshared.so", RTLD_LAZY);
|
||||
status = (void*) dlsym(hndl, (char const*)"status");
|
||||
count = (void*) dlsym(hndl, (char const*)"count");
|
||||
occupiedMem = (void*) dlsym(hndl, (char const*)"occupiedMem");
|
||||
status = (pFunc) dlsym(hndl, (char const*)"status");
|
||||
count = (pFunc) dlsym(hndl, (char const*)"count");
|
||||
occupiedMem = (pFunc) dlsym(hndl, (char const*)"occupiedMem");
|
||||
#endif
|
||||
|
||||
assert(hndl);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue