int status = 0;
if (WaitForSingleObject(proc_handle, INFINITE) != WAIT_FAILED) {
- if (!GetExitCodeProcess(proc_handle, &status)) {
+ if (!GetExitCodeProcess(proc_handle, (DWORD*)&status)) {
errstr << cmd << ": Could not get exit code: " << pid
<< ". Error code: " << GetLastError();
status = -ECHILD;
int dlclose(void* handle) {
//FreeLibrary returns 0 on error, as opposed to dlclose.
- return !FreeLibrary(handle);
+ return !FreeLibrary((HMODULE)handle);
}
void* dlsym(void* handle, const char* symbol) {
- return (void*)GetProcAddress(handle, symbol);
+ return (void*)GetProcAddress((HMODULE)handle, symbol);
}
dl_errmsg_t dlerror() {
if (unicast_sockaddr->sa_family != AF_INET &&
unicast_sockaddr->sa_family != AF_INET6)
continue;
- out_list_curr = calloc(sizeof(*out_list_curr), 1);
+ out_list_curr = (struct ifaddrs*)calloc(sizeof(*out_list_curr), 1);
if (!out_list_curr) {
errno = ENOMEM;
ret = -1;
RegistryKey(CephContext *cct_, HKEY hRootKey, LPCTSTR strKey, bool create_value);
~RegistryKey();
- static remove(CephContext *cct_, HKEY hRootKey, LPCTSTR strKey);
+ static int remove(CephContext *cct_, HKEY hRootKey, LPCTSTR strKey);
int flush();