Files
oneko/oneko-gcc14.patch

72 lines
1.5 KiB
Diff
Raw Permalink Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
oneko.c | 12 ++++++------
oneko.h | 1 +
2 files changed, 7 insertions(+), 6 deletions(-)
--- oneko.c
+++ oneko.c 2024-11-06 07:49:39.813793979 +0000
@@ -3,7 +3,7 @@
*/
#ifndef lint
-static char rcsid[] = "$Header: /home/sun/unix/kato/xsam/oneko/oneko.c,v 1.5 90/10/19 21:25:16 kato Exp $";
+static const char rcsid[] = "$Header: /home/sun/unix/kato/xsam/oneko/oneko.c,v 1.5 90/10/19 21:25:16 kato Exp $";
#endif
#include "oneko.h"
@@ -334,7 +334,7 @@ char *resource;
/*
* $@%j%=!<%9!&%G!<%?%Y!<%9$+$i%*%W%7%g%s$r@_Dj(J
*/
-
+void
GetResources()
{
char *resource;
@@ -433,7 +433,7 @@ GetResources()
/*
* $@$M$:$_7?%+!<%=%k$r:n$k(J
*/
-
+void
MakeMouseCursor()
{
Pixmap theCursorSource;
@@ -462,7 +462,7 @@ MakeMouseCursor()
/*
* $@?'$r=i4|@_Dj$9$k(J
*/
-
+void
SetupColors()
{
XColor theExactColor;
@@ -624,7 +624,7 @@ InitScreen(DisplayName)
fprintf(stderr, "Display not suported shape extension.\n");
NoShape = True;
}
-#endif SHAPE
+#endif // SHAPE
theScreen = DefaultScreen(theDisplay);
theDepth = DefaultDepth(theDisplay, theScreen);
@@ -809,7 +809,7 @@ DrawNeko(x, y, DrawAnime)
0, 0, DrawMask, ShapeSet);
}
-#endif SHAPE
+#endif // SHAPE
if (DontMapped) {
XMapWindow(theDisplay, theWindow);
DontMapped = 0;
--- oneko.h
+++ oneko.h 2024-11-06 07:45:59.765802240 +0000
@@ -20,6 +20,7 @@
#include <math.h>
#include <sys/time.h>
+#include <unistd.h>
/*
* $@%+!<%=%k%S%C%H%^%C%W%U%!%$%k$NFI$_9~$_(J