Shorten GPLv2 licence text in header of each source file
[dockapps/wmnotify.git] / src / configfile.c
index be8f77a..1bd42e1 100644 (file)
@@ -3,30 +3,19 @@
  *
  * Copyright (C) 2003 Hugo Villeneuve <hugo@hugovil.com>
  *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
+ * This file is released under the GPLv2
  */
 
 #if HAVE_CONFIG_H
 #  include "config.h"
 #endif
 
+#include <stdint.h>
+#include <stdbool.h>
 #include <unistd.h>
 #include <stdio.h>
 #include <sys/stat.h>
 #include <stdlib.h>
-#include <stdbool.h>
 
 #if STDC_HEADERS
 #  include <string.h>
@@ -283,7 +272,7 @@ static void ParseConfigurationFile(FILE *file)
                } else if (STREQ(token, "port")) {
                        token = GetArguments("port", true);
                        wmnotify_infos.port =
-                           (u_int16_t) GetNumber(token, "port");
+                           (uint16_t) GetNumber(token, "port");
                }
 
                else if (STREQ(token, "username")) {