summaryrefslogtreecommitdiffstats
path: root/src/osx/smc.cpp
diff options
context:
space:
mode:
authoraristocratos <gnmjpl@gmail.com>2023-07-26 14:38:48 +0200
committeraristocratos <gnmjpl@gmail.com>2023-07-26 14:38:48 +0200
commitaca2e4be7568186e122f1506fa25bdfb8c4f7f2a (patch)
tree2a7a8ff52cf96d2df47b44221dceff7aa0dfceb9 /src/osx/smc.cpp
parent33faa01910309895763011dce2a3194b889a0b6a (diff)
Fix whitespace indent -> tab indent
Diffstat (limited to 'src/osx/smc.cpp')
-rw-r--r--src/osx/smc.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/osx/smc.cpp b/src/osx/smc.cpp
index a9c849b..95d75f0 100644
--- a/src/osx/smc.cpp
+++ b/src/osx/smc.cpp
@@ -4,7 +4,7 @@
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
- http://www.apache.org/licenses/LICENSE-2.0
+ http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
@@ -35,10 +35,10 @@ static UInt32 _strtoul(char *str, int size, int base) {
static void _ultostr(char *str, UInt32 val) {
str[0] = '\0';
sprintf(str, "%c%c%c%c",
- (unsigned int)val >> 24,
- (unsigned int)val >> 16,
- (unsigned int)val >> 8,
- (unsigned int)val);
+ (unsigned int)val >> 24,
+ (unsigned int)val >> 16,
+ (unsigned int)val >> 8,
+ (unsigned int)val);
}
namespace Cpu {
@@ -65,7 +65,7 @@ namespace Cpu {
}
}
SMCConnection::~SMCConnection() {
- IOServiceClose(conn);
+ IOServiceClose(conn);
}
long long SMCConnection::getSMCTemp(char *key) {
@@ -132,7 +132,7 @@ namespace Cpu {
return kIOReturnSuccess;
}
-
+
kern_return_t SMCConnection::SMCCall(int index, SMCKeyData_t *inputStructure, SMCKeyData_t *outputStructure) {
size_t structureInputSize;
size_t structureOutputSize;
@@ -141,10 +141,10 @@ namespace Cpu {
structureOutputSize = sizeof(SMCKeyData_t);
return IOConnectCallStructMethod(conn, index,
- // inputStructure
- inputStructure, structureInputSize,
- // ouputStructure
- outputStructure, &structureOutputSize);
+ // inputStructure
+ inputStructure, structureInputSize,
+ // ouputStructure
+ outputStructure, &structureOutputSize);
}
} // namespace Cpu