Fix for segfault in top_name stuff.
[monky] / src / apcupsd.h
index efbfdf5..4097b5d 100644 (file)
@@ -1,4 +1,5 @@
 /* -*- mode: c; c-basic-offset: 4; tab-width: 4; indent-tabs-mode: t -*-
+ * vim: ts=4 sw=4 noet ai cindent syntax=c
  *
  * apcupsd.h:  conky module for APC UPS daemon monitoring
  *
@@ -19,8 +20,6 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301
  * USA.
  *
- * vim: ts=4 sw=4 noet ai cindent syntax=c
- *
  */
 
 #ifndef APCUPSD_H_
@@ -50,9 +49,6 @@ typedef struct apcupsd_s {
 } APCUPSD_S, *PAPCUPSD_S;
 
 /* Service routine for the conky main thread */
-void update_apcupsd(void);
-
-/* fill in the default values */
-void init_apcupsd(void);
+int update_apcupsd(void);
 
 #endif /*APCUPSD_H_*/