summaryrefslogtreecommitdiff
path: root/Build/source/utils/psutils/psutils-1.17-PATCHES/patch-03-main-is-int
blob: c36e61686cebcaa75a20757f818322e4dd926239 (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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
diff -ur psutils-1.17.orig/epsffit.c psutils-1.17/epsffit.c
--- psutils-1.17.orig/epsffit.c	2006-01-17 22:16:42.000000000 +0100
+++ psutils-1.17/epsffit.c	2008-02-01 12:23:16.000000000 +0100
@@ -39,7 +39,7 @@
    exit(1);
 }
 
-void main(int argc, char **argv)
+int main(int argc, char **argv)
 {
    int bbfound = 0;              /* %%BoundingBox: found */
    int urx, ury, llx, lly;
@@ -185,5 +185,5 @@
    } else
       message(FATAL, "no %%%%BoundingBox:\n");
 
-   exit(0);
+   return 0;
 }
diff -ur psutils-1.17.orig/psbook.c psutils-1.17/psbook.c
--- psutils-1.17.orig/psbook.c	2006-01-17 22:16:42.000000000 +0100
+++ psutils-1.17/psbook.c	2008-02-01 12:23:16.000000000 +0100
@@ -32,7 +32,7 @@
 }
 
 
-void main(int argc, char *argv[])
+int main(int argc, char *argv[])
 {
    int signature = 0;
    int currentpg, maxpage;
@@ -107,5 +107,5 @@
    }
    writetrailer();
 
-   exit(0);
+   return 0;
 }
diff -ur psutils-1.17.orig/pserror.c psutils-1.17/pserror.c
--- psutils-1.17.orig/pserror.c	1997-03-11 23:53:01.000000000 +0100
+++ psutils-1.17/pserror.c	2008-02-01 12:23:16.000000000 +0100
@@ -24,7 +24,7 @@
 void message(int flags, char *format, ...)
 {
   va_list args ;
-  static column = 0 ;		/* current screen column for message wrap */
+  static int column = 0 ;	/* current screen column for message wrap */
   char msgbuf[MAX_MESSAGE] ;	/* buffer in which to put the message */
   char *bufptr = msgbuf ;	/* message buffer pointer */
 
diff -ur psutils-1.17.orig/psnup.c psutils-1.17/psnup.c
--- psutils-1.17.orig/psnup.c	2006-01-17 22:16:42.000000000 +0100
+++ psutils-1.17/psnup.c	2008-02-01 12:23:16.000000000 +0100
@@ -66,7 +66,7 @@
    return (0);
 }
 
-void main(int argc, char *argv[])
+int main(int argc, char *argv[])
 {
    int horiz, vert, rotate, column, flip, leftright, topbottom;
    int nup = 1;
@@ -331,6 +331,6 @@
       pstops(nup, 1, 0, specs, draw);		/* do page rearrangement */
    }
 
-   exit(0);
+   return 0;
 }
 
diff -ur psutils-1.17.orig/psresize.c psutils-1.17/psresize.c
--- psutils-1.17.orig/psresize.c	2006-01-17 22:16:42.000000000 +0100
+++ psutils-1.17/psresize.c	2008-02-01 12:23:16.000000000 +0100
@@ -46,7 +46,7 @@
 #define MIN(x,y) ((x) > (y) ? (y) : (x))
 #define MAX(x,y) ((x) > (y) ? (x) : (y))
 
-void main(int argc, char *argv[])
+int main(int argc, char *argv[])
 {
    double scale, rscale;			/* page scale */
    double waste, rwaste;			/* amount wasted */
@@ -175,6 +175,6 @@
       
    pstops(1, 1, 0, specs, 0.0);		/* do page rearrangement */
 
-   exit(0);
+   return 0;
 }
 
diff -ur psutils-1.17.orig/psselect.c psutils-1.17/psselect.c
--- psutils-1.17.orig/psselect.c	2006-01-17 22:16:42.000000000 +0100
+++ psutils-1.17/psselect.c	2008-02-01 12:23:16.000000000 +0100
@@ -91,7 +91,7 @@
 }
 
 
-void main(int argc, char *argv[])
+int main(int argc, char *argv[])
 {
    int currentpg, maxpage = 0;
    int even = 0, odd = 0, reverse = 0;
@@ -235,5 +235,5 @@
    }
    writetrailer();
 
-   exit(0);
+   return 0;
 }
diff -ur psutils-1.17.orig/pstops.c psutils-1.17/pstops.c
--- psutils-1.17.orig/pstops.c	2006-01-17 22:16:42.000000000 +0100
+++ psutils-1.17/pstops.c	2008-02-01 12:23:16.000000000 +0100
@@ -112,7 +112,7 @@
    return (head);
 }
 
-void main(int argc, char *argv[])
+int main(int argc, char *argv[])
 {
    PageSpec *specs = NULL;
    int nobinding = 0;
@@ -194,5 +194,5 @@
 
    pstops(modulo, pagesperspec, nobinding, specs, draw);
 
-   exit(0);
+   return 0;
 }