mirror of
https://github.com/containers/podman.git
synced 2025-08-06 19:44:14 +08:00
Update "check.c" to be C23 compliant
Fixes compilation errors with GCC 15. Signed-off-by: Arthur Sengileyev <arthur.sengileyev@gmail.com>
This commit is contained in:
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
BOOL isWSLEnabled();
|
BOOL isWSLEnabled();
|
||||||
BOOL isHyperVEnabled();
|
BOOL isHyperVEnabled();
|
||||||
LPCWSTR boolToNStr(BOOL bool);
|
LPCWSTR boolToNStr(BOOL value);
|
||||||
LPCSTR szSvcNameHyperv = TEXT("vmms");
|
LPCSTR szSvcNameHyperv = TEXT("vmms");
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -43,8 +43,8 @@ LPCSTR szSvcNameHyperv = TEXT("vmms");
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
LPCWSTR boolToNStr(BOOL bool) {
|
LPCWSTR boolToNStr(BOOL value) {
|
||||||
return bool ? L"1" : L"0";
|
return value ? L"1" : L"0";
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOL isWSLEnabled() {
|
BOOL isWSLEnabled() {
|
||||||
|
Reference in New Issue
Block a user