gnome-games r8653 - in trunk: glines gnect/src gnibbles gnotravex gnotski gtali iagno mahjongg same-gnome
- From: thomashpa svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-games r8653 - in trunk: glines gnect/src gnibbles gnotravex gnotski gtali iagno mahjongg same-gnome
- Date: Tue, 3 Feb 2009 21:07:12 +0000 (UTC)
Author: thomashpa
Date: Tue Feb 3 21:07:11 2009
New Revision: 8653
URL: http://svn.gnome.org/viewvc/gnome-games?rev=8653&view=rev
Log:
Fix -Wold-style-definition warnings
Modified:
trunk/glines/glines.c
trunk/gnect/src/heurist.c
trunk/gnibbles/boni.c
trunk/gnibbles/gnibbles.c
trunk/gnibbles/main.c
trunk/gnibbles/warpmanager.c
trunk/gnotravex/gnotravex.c
trunk/gnotski/gnotski.c
trunk/gtali/clist.c
trunk/gtali/gyahtzee.c
trunk/gtali/yahtzee.c
trunk/iagno/ggz-network.c
trunk/mahjongg/solubility.c
trunk/same-gnome/game.c
Modified: trunk/glines/glines.c
==============================================================================
--- trunk/glines/glines.c (original)
+++ trunk/glines/glines.c Tue Feb 3 21:07:11 2009
@@ -1274,7 +1274,7 @@
}
static void
-load_theme ()
+load_theme (void)
{
if (ball_preimage)
g_object_unref (ball_preimage);
Modified: trunk/gnect/src/heurist.c
==============================================================================
--- trunk/gnect/src/heurist.c (original)
+++ trunk/gnect/src/heurist.c Tue Feb 3 21:07:11 2009
@@ -77,7 +77,7 @@
short
-whatfight ()
+whatfight (void)
{
return (short) fight_for_win;
}
Modified: trunk/gnibbles/boni.c
==============================================================================
--- trunk/gnibbles/boni.c (original)
+++ trunk/gnibbles/boni.c Tue Feb 3 21:07:11 2009
@@ -34,7 +34,7 @@
extern gchar board[BOARDWIDTH][BOARDHEIGHT];
GnibblesBoni *
-gnibbles_boni_new ()
+gnibbles_boni_new (void)
{
int i;
GnibblesBoni *tmp;
Modified: trunk/gnibbles/gnibbles.c
==============================================================================
--- trunk/gnibbles/gnibbles.c (original)
+++ trunk/gnibbles/gnibbles.c Tue Feb 3 21:07:11 2009
@@ -469,7 +469,7 @@
}
gint
-gnibbles_move_worms ()
+gnibbles_move_worms (void)
{
gint i, j, status = 1, nlives = 0;
gint *dead;
Modified: trunk/gnibbles/main.c
==============================================================================
--- trunk/gnibbles/main.c (original)
+++ trunk/gnibbles/main.c Tue Feb 3 21:07:11 2009
@@ -284,7 +284,7 @@
}
static void
-draw_board ()
+draw_board (void)
{
int i, j;
Modified: trunk/gnibbles/warpmanager.c
==============================================================================
--- trunk/gnibbles/warpmanager.c (original)
+++ trunk/gnibbles/warpmanager.c Tue Feb 3 21:07:11 2009
@@ -34,7 +34,7 @@
extern GnibblesBoni *boni;
GnibblesWarpManager *
-gnibbles_warpmanager_new ()
+gnibbles_warpmanager_new (void)
{
int i;
GnibblesWarpManager *tmp;
Modified: trunk/gnotravex/gnotravex.c
==============================================================================
--- trunk/gnotravex/gnotravex.c (original)
+++ trunk/gnotravex/gnotravex.c Tue Feb 3 21:07:11 2009
@@ -1603,7 +1603,7 @@
}
void
-new_game (){
+new_game (void){
gchar *str;
/* Reset pause menu */
Modified: trunk/gnotski/gnotski.c
==============================================================================
--- trunk/gnotski/gnotski.c (original)
+++ trunk/gnotski/gnotski.c Tue Feb 3 21:07:11 2009
@@ -704,7 +704,7 @@
}
void
-gui_draw_space ()
+gui_draw_space (void)
{
static GdkGC *bordergc = NULL;
static GdkGC *backgc = NULL;
@@ -872,7 +872,7 @@
}
void
-game_score ()
+game_score (void)
{
GamesScoreValue score;
gint pos;
@@ -1364,7 +1364,7 @@
}
static void
-prepare_map (current_level)
+prepare_map (void)
{
gint x, y = 0;
gchar *leveldata;
@@ -1433,7 +1433,7 @@
games_conf_set_integer (NULL, KEY_LEVEL, current_level);
- prepare_map (current_level);
+ prepare_map ();
games_grid_frame_set (GAMES_GRID_FRAME (gameframe), width, height);
configure_pixmaps ();
update_menu_state ();
Modified: trunk/gtali/clist.c
==============================================================================
--- trunk/gtali/clist.c (original)
+++ trunk/gtali/clist.c Tue Feb 3 21:07:11 2009
@@ -402,7 +402,7 @@
}
void
-update_score_tooltips()
+update_score_tooltips(void)
{
gint ii;
Modified: trunk/gtali/gyahtzee.c
==============================================================================
--- trunk/gtali/gyahtzee.c (original)
+++ trunk/gtali/gyahtzee.c Tue Feb 3 21:07:11 2009
@@ -257,7 +257,7 @@
/* Show the current score and prompt for current player state */
void
-DisplayCurrentPlayer() {
+DisplayCurrentPlayer(void) {
ShowoffPlayer (ScoreList, CurrentPlayer, 1);
if (players[CurrentPlayer].name) {
Modified: trunk/gtali/yahtzee.c
==============================================================================
--- trunk/gtali/yahtzee.c (original)
+++ trunk/gtali/yahtzee.c Tue Feb 3 21:07:11 2009
@@ -610,7 +610,7 @@
}
gint
-UndoLastMove() {
+UndoLastMove(void) {
if (UndoList) {
UndoScoreElement *elem = UndoList->data;
if (elem->field == H_YA && game_type == GAME_YAHTZEE) {
@@ -632,7 +632,7 @@
}
gint
-RedoLastMove() {
+RedoLastMove(void) {
gint rval = (CurrentPlayer + 1) % NumberOfPlayers;
if (RedoList) {
gint ii;
@@ -657,12 +657,12 @@
}
void
-RestoreLastRoll() {
+RestoreLastRoll(void) {
ResetDiceState(&lastRoll);
}
UndoScoreElement*
-RedoHead() {
+RedoHead(void) {
if (RedoList) {
UndoScoreElement *elem = RedoList->data;
return elem;
@@ -672,7 +672,7 @@
}
void
-FreeUndoList() {
+FreeUndoList(void) {
while (UndoList) {
UndoScoreElement *elem = UndoList->data;
UndoList = g_list_remove(UndoList, elem);
@@ -681,7 +681,7 @@
}
void
-FreeRedoList() {
+FreeRedoList(void) {
while (RedoList) {
UndoScoreElement *elem = RedoList->data;
RedoList = g_list_remove(RedoList, elem);
@@ -690,13 +690,13 @@
}
void
-FreeUndoRedoLists() {
+FreeUndoRedoLists(void) {
FreeUndoList();
FreeRedoList();
}
void
-FreeRedoListHead() {
+FreeRedoListHead(void) {
if (RedoList) {
UndoScoreElement *elem = RedoList->data;
RedoList = g_list_remove(RedoList, elem);
Modified: trunk/iagno/ggz-network.c
==============================================================================
--- trunk/iagno/ggz-network.c (original)
+++ trunk/iagno/ggz-network.c Tue Feb 3 21:07:11 2009
@@ -124,7 +124,7 @@
}
int
-get_gameover ()
+get_gameover (void)
{
int winner;
Modified: trunk/mahjongg/solubility.c
==============================================================================
--- trunk/mahjongg/solubility.c (original)
+++ trunk/mahjongg/solubility.c Tue Feb 3 21:07:11 2009
@@ -200,7 +200,7 @@
}
void
-generate_dependencies ()
+generate_dependencies (void)
{
int i, j;
int fc, lc, rc, oc;
Modified: trunk/same-gnome/game.c
==============================================================================
--- trunk/same-gnome/game.c (original)
+++ trunk/same-gnome/game.c Tue Feb 3 21:07:11 2009
@@ -453,7 +453,7 @@
}
void
-reset_undo ()
+reset_undo (void)
{
/* Free and reset the memory for the undo queue. */
free_urlist (urlist);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]