Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / x11 / xaniroc / patches / patch-aa
blob12a0f06da3849258896763574b646f08b2c8efcf
1 $NetBSD$
3 --- xaniroc.c.orig      1994-01-07 10:51:13.000000000 +0000
4 +++ xaniroc.c   2005-04-14 08:18:12.000000000 +0100
5 @@ -62,22 +62,19 @@
6   ***************************************************************************************************
7   */
8  
9 -void main(int argc, char *argv[]);
10 +int main(int argc, char *argv[]);
11  void usage(void);
12  void frame_wait(void);
13  int  pointer_in_rootwindow(void);
14 -#ifdef  SVR4
15  SIGVAL cleanup_and_exit(int sig);
16 -#else
17 -SIGVAL cleanup_and_exit(int sig, int code, struct sigcontext *scp, char *addr);
18 -#endif /* SVR4 */
20  /***************************************************************************************************
21   *     the main function of XAniroc
22   ***************************************************************************************************
23   */
25 -void main(int argc, char *argv[])
26 +int
27 +main(int argc, char *argv[])
28  {
30  /***************************************************************************************************
31 @@ -311,6 +308,7 @@
32                         if(i >= 24) i = 0;
33                 }
34         }
35 +       return 0;
36  } /*end of main */
38  /***************************************************************************************************
39 @@ -387,11 +385,7 @@
40   *                                     signal handler that cleans up the cursor
41   ***************************************************************************************************
42   */
43 -#ifdef  SVR4
44  SIGVAL cleanup_and_exit(int sig)
45 -#else
46 -SIGVAL cleanup_and_exit(int sig, int code,struct sigcontext *scp, char *addr)
47 -#endif /* SVR4 */
48  {
49          XUndefineCursor(display, XDefaultRootWindow(display));
50          XCloseDisplay(display);