summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorDavid Hill <dhill@cvs.openbsd.org>2006-03-20 15:19:04 +0000
committerDavid Hill <dhill@cvs.openbsd.org>2006-03-20 15:19:04 +0000
commit521142ba08da38262074e5c29c00f9a330e0d2cb (patch)
tree2d16f449dde0bd2e728499138aa8e489be0eddd3 /usr.sbin
parentd54ced695909a8b0c614d60ff3d488254bc0f2d6 (diff)
add two missing function declarations
change sensor_status to sensorsd_status ok deraadt@
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/sensorsd/sensorsd.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/usr.sbin/sensorsd/sensorsd.c b/usr.sbin/sensorsd/sensorsd.c
index 89479127844..79b3b176597 100644
--- a/usr.sbin/sensorsd/sensorsd.c
+++ b/usr.sbin/sensorsd/sensorsd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sensorsd.c,v 1.20 2006/02/06 21:32:20 moritz Exp $ */
+/* $OpenBSD: sensorsd.c,v 1.21 2006/03/20 15:19:03 dhill Exp $ */
/*
* Copyright (c) 2003 Henning Brauer <henning@openbsd.org>
@@ -36,8 +36,9 @@
#define REPORT_PERIOD 60 /* report every n seconds */
#define CHECK_PERIOD 60 /* check every n seconds */
-int main(int, char *[]);
+void usage(void);
void check_sensors(void);
+void execute(char *);
void report(time_t);
static char *print_sensor(enum sensor_type, int64_t);
int parse_config(char *);
@@ -57,7 +58,7 @@ struct limits_t {
int64_t lower; /* lower limit */
int64_t upper; /* upper limit */
char *command; /* failure command */
- enum sensor_status status; /* last status */
+ enum sensorsd_status status; /* last status */
time_t status_changed;
int64_t last_val;
};
@@ -174,11 +175,11 @@ main(int argc, char *argv[])
void
check_sensors(void)
{
- struct sensor sensor;
- struct limits_t *limit;
- size_t len;
- int mib[3];
- int newstatus;
+ struct sensor sensor;
+ struct limits_t *limit;
+ size_t len;
+ int mib[3];
+ enum sensorsd_status newstatus;
mib[0] = CTL_HW;
mib[1] = HW_SENSORS;