summaryrefslogtreecommitdiff
path: root/x11/tvtwm/patches/patch-aw
blob: 4e1e4bfc8c9fe2156fc577e864cb588a9cda35e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
$NetBSD: patch-aw,v 1.2 2000/02/05 15:58:30 wiz Exp $

Index: twm.c
===================================================================
RCS file: /home/siren/src/tvtwm/twm.c,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -r1.1.1.1 -r1.2
--- twm.c	1999/08/08 05:46:53	1.1.1.1
+++ twm.c	1999/08/08 05:56:58	1.2
@@ -142,6 +142,7 @@
 #include <signal.h>
 #include <fcntl.h>
 #include <sys/wait.h>
+#include <unistd.h>
 #include "twm.h"
 #include "add_window.h"
 #include "gc.h"
@@ -153,9 +154,12 @@
 #include "gram.h"
 #include "screen.h"
 #include "iconmgr.h"
+#include "list.h"
+#include "icons.h"
 #include <X11/Xproto.h>
 #include <X11/Xatom.h>
 #include <X11/bitmaps/root_weave>
+#include <X11/Xmu/Error.h>
 #include "vdt.h"
 #define XK_LATIN1
 #include <X11/keysymdef.h>
@@ -230,6 +234,10 @@
 
 extern void assign_var_savecolor();
 
+void InternUsefulAtoms (void);
+void InitVariables(void);
+void CreateFonts (void);
+
 /***********************************************************************
  *
  *  Procedure:
@@ -238,7 +246,7 @@
  ***********************************************************************
  */
 
-main(argc, argv, environ)
+int main(argc, argv, environ)
     int argc;
     char **argv;
     char **environ;
@@ -727,6 +735,8 @@
     }
 
     HandleEvents();
+    exit(0);
+      /* NOTREACHED */
 }
 
 /***********************************************************************
@@ -827,7 +837,7 @@
  ***********************************************************************
  */
 
-InitVariables()
+void InitVariables(void)
 {
     FreeList(&Scr->BorderColorL);
     FreeList(&Scr->IconBorderColorL);
@@ -1020,7 +1030,7 @@
 }
 
 
-RestoreWithdrawnLocation (tmp)
+void RestoreWithdrawnLocation (tmp)
     TwmWindow *tmp;
 {
     int gravx, gravy;
@@ -1227,7 +1237,7 @@
 Atom _XA_TWM_PROCESS;   /* used to record where twm is */
 Atom _XA_TWM_MACHINE;
 
-InternUsefulAtoms ()
+void InternUsefulAtoms (void)
 {
     /* 
      * Create priority colors if necessary.