hylafax/hylafax-7.0.8-gcc-14.2.0.patch

21 lines
698 B
Diff

--- hylafax-7.0.8/faxd/sslfaxproxy.c++.orig 2024-09-15 17:20:01.598908502 +0200
+++ hylafax-7.0.8/faxd/sslfaxproxy.c++ 2024-09-15 17:20:27.923965726 +0200
@@ -31,7 +31,7 @@
fflush(fp);
}
-timeval currentTime() {
+timeval currentTime2() {
timeval curTime;
gettimeofday(&curTime, 0);
return curTime;
@@ -123,7 +123,7 @@
printlog(stderr, "getsockname(ctrl): %s\n", strerror(errno));
}
- srand((unsigned int) currentTime().tv_usec % ntohs(data_addr.sin_port));
+ srand((unsigned int) currentTime2().tv_usec % ntohs(data_addr.sin_port));
const char* passcode = randomString(10);
fxStr info = fxStr::format("%s@%s:%d", passcode, infohost, ntohs(data_addr.sin_port));