Merge from vendor branch TNF:
[pkgsrc.git] / x11 / tvtwm / patches / patch-aw
1 $NetBSD$
2
3 Index: twm.c
4 ===================================================================
5 RCS file: /home/siren/src/tvtwm/twm.c,v
6 retrieving revision 1.1.1.1
7 retrieving revision 1.2
8 diff -u -r1.1.1.1 -r1.2
9 --- twm.c       1999/08/08 05:46:53     1.1.1.1
10 +++ twm.c       1999/08/08 05:56:58     1.2
11 @@ -142,6 +142,7 @@
12  #include <signal.h>
13  #include <fcntl.h>
14  #include <sys/wait.h>
15 +#include <unistd.h>
16  #include "twm.h"
17  #include "add_window.h"
18  #include "gc.h"
19 @@ -153,9 +154,12 @@
20  #include "gram.h"
21  #include "screen.h"
22  #include "iconmgr.h"
23 +#include "list.h"
24 +#include "icons.h"
25  #include <X11/Xproto.h>
26  #include <X11/Xatom.h>
27  #include <X11/bitmaps/root_weave>
28 +#include <X11/Xmu/Error.h>
29  #include "vdt.h"
30  #define XK_LATIN1
31  #include <X11/keysymdef.h>
32 @@ -230,6 +234,10 @@
33  
34  extern void assign_var_savecolor();
35  
36 +void InternUsefulAtoms (void);
37 +void InitVariables(void);
38 +void CreateFonts (void);
39 +
40  /***********************************************************************
41   *
42   *  Procedure:
43 @@ -238,7 +246,7 @@
44   ***********************************************************************
45   */
46  
47 -main(argc, argv, environ)
48 +int main(argc, argv, environ)
49      int argc;
50      char **argv;
51      char **environ;
52 @@ -727,6 +735,8 @@
53      }
54  
55      HandleEvents();
56 +    exit(0);
57 +      /* NOTREACHED */
58  }
59  
60  /***********************************************************************
61 @@ -827,7 +837,7 @@
62   ***********************************************************************
63   */
64  
65 -InitVariables()
66 +void InitVariables(void)
67  {
68      FreeList(&Scr->BorderColorL);
69      FreeList(&Scr->IconBorderColorL);
70 @@ -1020,7 +1030,7 @@
71  }
72  
73  
74 -RestoreWithdrawnLocation (tmp)
75 +void RestoreWithdrawnLocation (tmp)
76      TwmWindow *tmp;
77  {
78      int gravx, gravy;
79 @@ -1227,7 +1237,7 @@
80  Atom _XA_TWM_PROCESS;   /* used to record where twm is */
81  Atom _XA_TWM_MACHINE;
82  
83 -InternUsefulAtoms ()
84 +void InternUsefulAtoms (void)
85  {
86      /* 
87       * Create priority colors if necessary.