1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-21 04:06:46 +00:00

Fix build error with clang.

This commit is contained in:
Vanilla I. Shu 2011-09-28 06:35:43 +00:00
parent 485c87a063
commit c6667ffa74
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=282554
2 changed files with 37 additions and 0 deletions

View File

@ -0,0 +1,26 @@
--- xtruco.c.orig 2011-09-28 10:45:56.000000000 +0800
+++ xtruco.c 2011-09-28 10:51:28.000000000 +0800
@@ -67,6 +67,7 @@ int pc, you, Who_Play, You_Play, first
int alert, Sum_Val, ValGame, danger, Begining;
int Play, Beginer, Who_Say_Truco,score1, score2;
int SHOW=1;
+void Refresh(Display *, Window, GC, Pixmap, int, int, int, int);
main( argc, argv )
int argc;
@@ -603,6 +604,7 @@ int *width, *height;
return( True );
}
+void
Refresh( display, window, gc, pixmap, x, y, width, height )
Display *display;
Window window;
@@ -632,6 +634,7 @@ int x, y, width, height;
}
XCopyArea( display, pixmap, window, gc, x, y, width,
height, x, y );
+ return;
}
MakeButtons( display, window, gc, fore, back, font_id, h, v )

View File

@ -0,0 +1,11 @@
--- bclock.c.orig 2011-09-28 14:32:42.000000000 +0800
+++ bclock.c 2011-09-28 14:33:26.000000000 +0800
@@ -88,7 +88,7 @@ static XrmOptionDescRec options[] = {
{"-transparent","*clock.transparent", XrmoptionNoArg, "TRUE"},
};
-void main(argc, argv)
+int main(argc, argv)
int argc;
char **argv;
{