void-packages/srcpkgs/oneko/patches/fix-warnings.diff

44 lines
801 B
Diff
Raw 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.

diff --git a/oneko.c b/oneko.c
index d569eb5..926c1cd 100644
--- a/oneko.c
+++ b/oneko.c
@@ -335,7 +335,7 @@ char *resource;
* $@%j%=!<%9!&%G!<%?%Y!<%9$+$i%*%W%7%g%s$r@_Dj(J
*/
-GetResources()
+void GetResources()
{
char *resource;
int num;
@@ -434,7 +434,7 @@ GetResources()
* $@$M$:$_7?%+!<%=%k$r:n$k(J
*/
-MakeMouseCursor()
+void MakeMouseCursor()
{
Pixmap theCursorSource;
Pixmap theCursorMask;
@@ -463,7 +463,7 @@ MakeMouseCursor()
* $@?'$r=i4|@_Dj$9$k(J
*/
-SetupColors()
+void SetupColors()
{
XColor theExactColor;
Colormap theColormap;
diff --git a/oneko.h b/oneko.h
index 414e12f..225d975 100644
--- a/oneko.h
+++ b/oneko.h
@@ -19,6 +19,7 @@
#include <signal.h>
#include <math.h>
#include <sys/time.h>
+#include <unistd.h>
/*