]> gitweb.michael.orlitzky.com - xfce4-hdaps.git/blobdiff - panel-plugin/hdaps.c
COPYING: update license to AGPL-3.
[xfce4-hdaps.git] / panel-plugin / hdaps.c
index a2962e40ffaaff47ccea819dd15afe9c46799ae5..c9a6831e00fe96207dafca5302bfb31dbc94ee92 100644 (file)
@@ -1,3 +1,24 @@
+/*
+ * xfce4-hdaps, an XFCE4 panel plugin for the HDAPS system.
+ *
+ * Copyright (C) 2019 Michael Orlitzky
+ *
+ *   http://michael.orlitzky.com/
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU Affero General Public License for more details:
+ *
+ *   https://www.gnu.org/licenses/agpl-3.0.html
+ *
+ */
+
 #ifdef HAVE_CONFIG_H
 #include <config.h>
 #endif
@@ -6,8 +27,9 @@
 #include <sys/types.h>
 #include <errno.h>
 #include <fcntl.h>
-#include <stdio.h>
 #include <string.h>
+#include <stdlib.h>
+#include <unistd.h>
 #include "hdaps.h"
 
 /* The most space we expect to need when reading in