50 lines
1.6 KiB
Text
50 lines
1.6 KiB
Text
$NetBSD: patch-aa,v 1.1 2005/04/14 07:28:40 tron Exp $
|
|
|
|
--- xaniroc.c.orig 1994-01-07 10:51:13.000000000 +0000
|
|
+++ xaniroc.c 2005-04-14 08:18:12.000000000 +0100
|
|
@@ -62,22 +62,19 @@
|
|
***************************************************************************************************
|
|
*/
|
|
|
|
-void main(int argc, char *argv[]);
|
|
+int main(int argc, char *argv[]);
|
|
void usage(void);
|
|
void frame_wait(void);
|
|
int pointer_in_rootwindow(void);
|
|
-#ifdef SVR4
|
|
SIGVAL cleanup_and_exit(int sig);
|
|
-#else
|
|
-SIGVAL cleanup_and_exit(int sig, int code, struct sigcontext *scp, char *addr);
|
|
-#endif /* SVR4 */
|
|
|
|
/***************************************************************************************************
|
|
* the main function of XAniroc
|
|
***************************************************************************************************
|
|
*/
|
|
|
|
-void main(int argc, char *argv[])
|
|
+int
|
|
+main(int argc, char *argv[])
|
|
{
|
|
|
|
/***************************************************************************************************
|
|
@@ -311,6 +308,7 @@
|
|
if(i >= 24) i = 0;
|
|
}
|
|
}
|
|
+ return 0;
|
|
} /*end of main */
|
|
|
|
/***************************************************************************************************
|
|
@@ -387,11 +385,7 @@
|
|
* signal handler that cleans up the cursor
|
|
***************************************************************************************************
|
|
*/
|
|
-#ifdef SVR4
|
|
SIGVAL cleanup_and_exit(int sig)
|
|
-#else
|
|
-SIGVAL cleanup_and_exit(int sig, int code,struct sigcontext *scp, char *addr)
|
|
-#endif /* SVR4 */
|
|
{
|
|
XUndefineCursor(display, XDefaultRootWindow(display));
|
|
XCloseDisplay(display);
|