apcupsd and iostats work on FreeBSD
[monky] / src / solaris.c
index ffa7f20..33f066d 100644 (file)
@@ -1,4 +1,7 @@
-/* Conky, a system monitor, based on torsmo
+/* -*- mode: c; c-basic-offset: 4; tab-width: 4; indent-tabs-mode: t -*-
+ * vim: ts=4 sw=4 noet ai cindent syntax=c
+ *
+ * Conky, a system monitor, based on torsmo
  *
  * Any original torsmo code is licensed under the BSD license
  *
@@ -6,7 +9,7 @@
  *
  * Please see COPYING for details
  *
- * Copyright (c) 2005-2007 Brenden Matthews, Philip Kovacs, et. al.
+ * Copyright (c) 2005-2010 Brenden Matthews, Philip Kovacs, et. al.
  *     (see AUTHORS)
  * All rights reserved.
  *
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  *
- * $Id$ */
+ */
 
 /* doesn't work, feel free to finish this */
 #include "conky.h"
+#include "common.h"
 #include <kstat.h>
 
 static kstat_ctl_t *kstat;
@@ -36,7 +40,7 @@ static void update_kstat()
        if (kstat == NULL) {
                kstat = kstat_open();
                if (kstat == NULL) {
-                       ERR("can't open kstat: %s", strerror(errno));
+                       NORM_ERR("can't open kstat: %s", strerror(errno));
                }
        }