DEADSOFTWARE

portability: avoid errors on some compilers
[flatwaifu.git] / src / args.c
index ac3fb67dc7d33967e395f28f859c174f16334193..99410f43cdf3eb8adf6d8c09ff7c9ca7be7b0cd1 100644 (file)
@@ -1,3 +1,18 @@
+/* Copyright (C) 2020 SovietPony
+ *
+ * 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, version 3 of the License ONLY.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ */
+
 #include "args.h"
 #include "system.h"
 #include "error.h"
 #include <assert.h>
 
 void ARG_parse (int argc, char **argv, int n, const cfg_t **list) {
+  int i, j;
+  char *key;
+  const cfg_t *c;
   assert(argc >= 0);
   assert(argv != NULL);
   assert(n >= 0);
   assert(list != NULL);
-  int i, j;
-  char *key;
-  const cfg_t *c;
   for (i = 1; i < argc; i++) {
     if (argv[i][0] == '-' && argv[i][1] != 0) {
       j = 0;