<URL: http://bugs.freeciv.org/Ticket/Display.html?id=39655 >

 New compiler...


 - ML

diff -Nurd -X.diff_ignore freeciv/client/gui-xaw/cma_fe.c freeciv/client/gui-xaw/cma_fe.c
--- freeciv/client/gui-xaw/cma_fe.c	2007-03-05 19:16:06.000000000 +0200
+++ freeciv/client/gui-xaw/cma_fe.c	2007-09-02 05:41:56.000000000 +0300
@@ -465,7 +465,7 @@
 static void remove_preset_yes(Widget w, XtPointer row,
                               XtPointer call_data)
 {
-  cmafec_preset_remove((int)row);
+  cmafec_preset_remove(XTPOINTER_TO_INT(row));
   update_cma_preset_list();
   destroy_message_dialog(w);
 }
diff -Nurd -X.diff_ignore freeciv/client/gui-xaw/menu.c freeciv/client/gui-xaw/menu.c
--- freeciv/client/gui-xaw/menu.c	2007-03-05 19:16:06.000000000 +0200
+++ freeciv/client/gui-xaw/menu.c	2007-09-02 05:43:41.000000000 +0300
@@ -325,7 +325,7 @@
       w = XtCreateManagedWidget(gov->name, smeBSBObjectClass,
 				menus[MENU_GOVERNMENT]->shell, NULL, 0);
       XtAddCallback(w, XtNcallback, revolution_menu_callback,
-		    (XtPointer)gov->index);
+		    INT_TO_XTPOINTER(gov->index));
       XtSetSensitive(w, can_change_to_government(game.player_ptr,
 						 gov->index));
 
diff -Nurd -X.diff_ignore freeciv/server/stdinhand.c freeciv/server/stdinhand.c
--- freeciv/server/stdinhand.c	2007-08-12 21:30:36.000000000 +0300
+++ freeciv/server/stdinhand.c	2007-09-02 05:20:13.000000000 +0300
@@ -3173,7 +3173,7 @@
    * srvarg.load_filename, which we edit down below. */
   sz_strlcpy(arg, filename);
 
-  if (!arg || arg[0] == '\0') {
+  if (arg[0] == '\0') {
     cmd_reply(CMD_LOAD, caller, C_FAIL, _("Usage: load <filename>"));
     send_load_game_info(FALSE);
     return FALSE;
_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to