Skip to content

Commit

Permalink
fix: use const char[] for kVersion
Browse files Browse the repository at this point in the history
  • Loading branch information
narugit committed Aug 18, 2024
1 parent 4cdef5c commit 3535393
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion smctemp.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#define COUNT_OF(x) ((sizeof(x)/sizeof(0[x])) / ((size_t)(!(sizeof(x) % sizeof(0[x])))))

namespace smctemp {
const std::string kVersion = "0.4.0";
const char kVersion[] = "0.4.0";
constexpr char kIOAppleSmcHiddenClassName[] = "AppleSMC";
constexpr char kSmcCmdReadBytes = 5;
constexpr char kSmcCmdReadIndex = 8;
Expand Down

0 comments on commit 3535393

Please sign in to comment.