rid warnings from modern MSVC
This commit is contained in:
1 parent
e710e27948
commit
3e064dfeb7
8 files changed
+36
-23
No files matched your search
@@ -1323,7 +1323,7 @@ JNIEXPORT jlongArray SIGAR_JNI(ptql_SigarProcessQuery_find)
|
||||
JNIEXPORT jboolean SIGAR_JNI(util_Getline_isatty)
|
||||
(JNIEnv *env, jclass cls)
|
||||
{
|
||||
return isatty(fileno(stdin)) ? JNI_TRUE : JNI_FALSE;
|
||||
return sigar_isatty(sigar_fileno(stdin)) ? JNI_TRUE : JNI_FALSE;
|
||||
}
|
||||
|
||||
JNIEXPORT jstring SIGAR_JNI(util_Getline_getline)
|
||||
|
||||
@@ -115,7 +115,7 @@ JNIEXPORT jlong SIGAR_JNI(win32_RegistryKey_RegOpenKey)
|
||||
|
||||
/* required under IBM/WebSphere 4.0 for certain keys */
|
||||
if (lpSubkey[len] != '\0') {
|
||||
copy = wcsdup(lpSubkey);
|
||||
copy = _wcsdup(lpSubkey);
|
||||
copy[len] = '\0';
|
||||
}
|
||||
else {
|
||||
@@ -143,7 +143,7 @@ JNIEXPORT jint SIGAR_JNI(win32_RegistryKey_RegQueryIntValue)
|
||||
LONG lErr;
|
||||
/* required under IBM/WebSphere 4.0 for certain keys */
|
||||
if (lpValueName[len] != '\0') {
|
||||
copy = wcsdup(lpValueName);
|
||||
copy = _wcsdup(lpValueName);
|
||||
copy[len] = '\0';
|
||||
}
|
||||
else {
|
||||
@@ -206,7 +206,7 @@ JNIEXPORT jstring SIGAR_JNI(win32_RegistryKey_RegQueryStringValue)
|
||||
LONG lErr;
|
||||
/* required under IBM/WebSphere 4.0 for certain keys */
|
||||
if (lpValueName[len] != '\0') {
|
||||
copy = wcsdup(lpValueName);
|
||||
copy = _wcsdup(lpValueName);
|
||||
copy[len] = '\0';
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in new issue
Block a user