refraction part 10 header updates...
[mancala] / src / launcher / mancala-launcher.c
index 9bdf039..20462e2 100644 (file)
@@ -1,26 +1,38 @@
-/**
-   @file crazyparking.c
-
-   Wrapper crazyparking launcher
-   <p>
-   Copyright (c) 2005 INdT. All eigths reserved.
-
-   @author Andre Moreira Magalhaes <andre.magalhaes@indt.org.br>
+/*
+* This file is part of Mancala
+*
+* Idea from Crazyparking
+*
+* Copyright (c) 2009 Reto Zingg
+*
+* This software is free software; you can redistribute it and/or
+* modify it under the terms of the GNU Lesser General Public License
+* as published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software 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
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free Software
+* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA
 */
 
 #include <stdio.h>
 #include <unistd.h>
 
-char *argh[] = { "/usr/games/wrapper/wrapper",
-                 "/home/opt/mancala/data/mancala.game",
-                NULL };
+char *wrapper_args[] = {"/usr/games/wrapper/wrapper",
+                        "/home/opt/mancala/data/mancala.game",
+                        NULL};
 
 int main(int argc, char *argv[])
 {
-    fprintf(stderr, "mancala launcher...\n");
     
-    if (execv ("/usr/games/wrapper/wrapper", argh) == -1) {
-        fprintf(stderr, "can not execute wrapper\n");
+    if (execv ("/usr/games/wrapper/wrapper", wrapper_args) == -1) {
+        printf("Launching mancala wrapper failed\n");
     }
 
     return 0;