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
|
From: Santiago Vila <sanvila@debian.org>
Subject: Fixes for gcc-15
Bug-Debian: https://bugs.debian.org/1097900
X-Debian-version: 3.15-28
--- a/src/autoconf
+++ b/src/autoconf
@@ -411,12 +411,12 @@
int sfdlock(int fd);
int fdunlock();
-void stimeout()
+void stimeout(int sig)
{ timeout=1;close(fdcollect);killchildren();
}
-void Terminate()
-{ stimeout();exit(1);
+void Terminate(int sig)
+{ stimeout(sig);exit(1);
}
static unsigned long seed;
@@ -977,8 +977,8 @@
#ifndef NO_COMSAT
#include "network.h"
#endif
-int setrgid();
-int setresgid();
+int setrgid(int dummy);
+int setresgid(int dummy1, int dummy2, int dummy3);
int main(){char a[2];
endpwent();endgrent();memmove(a,"0",1);bcopy("0",a,1);strcspn(a,"0");
strtol("0",(char**)0,10);strchr("0",'0');strpbrk(a,"0");rename(a,"0");
@@ -1115,8 +1115,8 @@
#ifdef BENCHSIZE
#undef strstr /* from includes.h */
#undef free /* from shell.h */
-unsigned long dobench(strstr,iter,haystack)char*(*const strstr)();
- unsigned long iter;const char*const haystack;
+unsigned long dobench(char* (*const strstr)(const char*, const char*),
+ unsigned long iter, const char* const haystack)
{ unsigned long to;
to=(unsigned long)clock();
do (*strstr)(haystack,FROM_EXPR);
|