Added
Link Here
|
1 |
--- ./modules/FvwmClean/FvwmClean.c.orig 1994-09-16 15:53:49.000000000 +0000 |
2 |
+++ ./modules/FvwmClean/FvwmClean.c 2009-03-11 09:42:51.000000000 +0000 |
3 |
@@ -52,7 +52,7 @@ |
4 |
* main - start of module |
5 |
* |
6 |
***********************************************************************/ |
7 |
-void main(int argc, char **argv) |
8 |
+int main(int argc, char **argv) |
9 |
{ |
10 |
char *temp, *s; |
11 |
FILE *file; |
12 |
@@ -134,6 +134,7 @@ |
13 |
SendInfo(fd,"Send_WindowList",0); |
14 |
|
15 |
Loop(fd); |
16 |
+ return (0); |
17 |
} |
18 |
|
19 |
|
20 |
@@ -228,31 +229,6 @@ |
21 |
} |
22 |
|
23 |
|
24 |
- |
25 |
- |
26 |
-/*********************************************************************** |
27 |
- * |
28 |
- * Procedure: |
29 |
- * safemalloc - mallocs specified space or exits if there's a |
30 |
- * problem |
31 |
- * |
32 |
- ***********************************************************************/ |
33 |
-char *safemalloc(int length) |
34 |
-{ |
35 |
- char *ptr; |
36 |
- |
37 |
- if(length <=0) |
38 |
- length = 1; |
39 |
- |
40 |
- ptr = malloc(length); |
41 |
- if(ptr == (char *)0) |
42 |
- { |
43 |
- fprintf(stderr,"%s:malloc failed",MyName); |
44 |
- exit(1); |
45 |
- } |
46 |
- return ptr; |
47 |
-} |
48 |
- |
49 |
/*********************************************************************** |
50 |
* |
51 |
* Procedure: |