summaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorTommie Gannert <tommie@gannert.se>2016-08-01 20:28:16 +0100
committerTommie Gannert <tommie@gannert.se>2016-08-14 12:20:43 +0100
commita937693cefd664b7f259713ed1fdddc4cc7ad188 (patch)
treeb803904806e251ba2b32d69fbbc1a562e9e97544 /man
parent7728cff37044943b05c4f9de5e9c6ef3d9e14a12 (diff)
Simplify string comparisons in slurp_battery_info for NetBSD.
Doing strlen(a) == strlen(b) && strncmp(a, b, N) seems to have no benefits compared to just strcmp(a, b). The NetBSD cstring properties come from the kernel, not the user. The test for units did a prefix match, but that looked like a bug, the unit is "Watt hour" in my Virtual box.
Diffstat (limited to 'man')
0 files changed, 0 insertions, 0 deletions