summaryrefslogtreecommitdiff
path: root/usr.bin/systat/sensors.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2007-02-24 04:01:06 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2007-02-24 04:01:06 +0000
commite4120bdc0eadebffe0e60108d7bd2f650164175c (patch)
tree5d456477eb0d3e0b87ebe1c12df5dc9a45868678 /usr.bin/systat/sensors.c
parentdde22ca26c9cad0508215940c572745bab8eda06 (diff)
some cleanups, i agree; Murenin
Diffstat (limited to 'usr.bin/systat/sensors.c')
-rw-r--r--usr.bin/systat/sensors.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/systat/sensors.c b/usr.bin/systat/sensors.c
index 5f6ca489937..f3e696c3b13 100644
--- a/usr.bin/systat/sensors.c
+++ b/usr.bin/systat/sensors.c
@@ -55,7 +55,7 @@ labelsensors(void)
{
wmove(wnd, 0, 0);
wclrtobot(wnd);
- mvwaddstr(wnd, 1, 0, "Device");
+ mvwaddstr(wnd, 1, 0, "Sensor");
mvwaddstr(wnd, 1, 34, "Value");
mvwaddstr(wnd, 1, 45, "Status");
mvwaddstr(wnd, 1, 58, "Description");
@@ -177,7 +177,7 @@ printline(void)
mvwprintw(wnd, row, 24, "%10lld", sensor.value);
break;
}
- if (sensor.desc && strlen(sensor.desc) >= 1)
+ if (strlen(sensor.desc) >= 1)
mvwprintw(wnd, row, 58, "(%s)", sensor.desc);
switch (sensor.status) {