aports/community/psutils/fix-build-with-gcc_14.patch
2024-09-02 23:05:09 +00:00

95 lines
2.8 KiB
Diff

diff -Naur a/epsffit.c b/epsffit.c
--- a/epsffit.c 2024-09-02 15:20:18.206931960 -0400
+++ b/epsffit.c 2024-09-02 15:34:59.337135941 -0400
@@ -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;
diff -Naur a/psbook.c b/psbook.c
--- a/psbook.c 2024-09-02 15:20:18.206931960 -0400
+++ b/psbook.c 2024-09-02 15:27:37.855349819 -0400
@@ -32,7 +32,7 @@
}
-void main(int argc, char *argv[])
+int main(int argc, char *argv[])
{
int signature = 0;
int currentpg, maxpage;
diff -Naur a/pserror.c b/pserror.c
--- a/pserror.c 2024-09-02 15:20:18.206931960 -0400
+++ b/pserror.c 2024-09-02 15:29:37.154300631 -0400
@@ -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 -Naur a/psnup.c b/psnup.c
--- a/psnup.c 2024-09-02 15:20:18.210265357 -0400
+++ b/psnup.c 2024-09-02 15:38:43.201422129 -0400
@@ -66,12 +66,15 @@
return (0);
}
-void main(int argc, char *argv[])
+int main(int argc, char *argv[])
{
- int horiz, vert, rotate, column, flip, leftright, topbottom;
+ int horiz = 0;
+ int vert = 0;
+ int rotate = 0;
+ int column, flip, leftright, topbottom;
int nup = 1;
double draw = 0; /* draw page borders */
- double scale; /* page scale */
+ double scale = 0; /* page scale */
double uscale = 0; /* user supplied scale */
double ppwid, pphgt; /* paper dimensions */
double margin, border; /* paper & page margins */
diff -Naur a/psresize.c b/psresize.c
--- a/psresize.c 2024-09-02 15:20:18.210265357 -0400
+++ b/psresize.c 2024-09-02 15:35:32.397768932 -0400
@@ -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 */
diff -Naur a/psselect.c b/psselect.c
--- a/psselect.c 2024-09-02 15:20:18.210265357 -0400
+++ b/psselect.c 2024-09-02 15:21:16.368045559 -0400
@@ -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;
diff -Naur a/pstops.c b/pstops.c
--- a/pstops.c 2024-09-02 15:20:18.210265357 -0400
+++ b/pstops.c 2024-09-02 15:35:55.381542318 -0400
@@ -112,7 +112,7 @@
return (head);
}
-void main(int argc, char *argv[])
+int main(int argc, char *argv[])
{
PageSpec *specs = NULL;
int nobinding = 0;