proxy: no variable named small, a macro for char on Windows
C/C++ CI Linux / ${{ matrix.target }} (ubuntu-24.04-arm) (push) Has been cancelled
C/C++ CI Linux / ${{ matrix.target }} (ubuntu-latest) (push) Has been cancelled
C/C++ CI MacOS / ${{ matrix.target }} (macos-15) (push) Has been cancelled
C/C++ CI Windows / ${{ matrix.target }} (windows-2022) (push) Has been cancelled
C/C++ CI cmake / ${{ matrix.target }} (macos-15) (push) Has been cancelled
C/C++ CI cmake / ${{ matrix.target }} (ubuntu-24.04-arm) (push) Has been cancelled
C/C++ CI cmake / ${{ matrix.target }} (ubuntu-latest) (push) Has been cancelled
C/C++ CI cmake / ${{ matrix.target }} (windows-2022) (push) Has been cancelled
C/C++ CI cmake / ubuntu-latest (wolfSSL) (push) Has been cancelled

rpcndr.h, which windows.h brings in, defines small as char, so the
buffer the rest of a request is read into, unsigned char small[256],
did not compile with MSVC. Renamed, and the splice heuristic's small
in mainconf.c too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Vladimir DubrovinandClaude Opus 5.5 committed 2026-10-19 16:50:42 +03:00
1 parent 8cc7d255af
commit 8517a5675b
2 files changed
+7 -7

No files matched your search

+3 -3
View File
@@ -484,12 +484,12 @@ static int srvprepare(struct srvstart *s, int argc, char **argv){
SPLICE_DOWNLOAD|SPLICE_UPLOAD|SPLICE_AUTO) &
(SPLICE_DOWNLOAD|SPLICE_UPLOAD|SPLICE_AUTO);
if(heur){
int min = 0, streak = 0, small = 0;
int min = 0, streak = 0, smallsz = 0;
sscanf(heur+1, "%d,%d,%d", &min, &streak, &small);
sscanf(heur+1, "%d,%d,%d", &min, &streak, &smallsz);
if(min > 0) srv->splicemin = min;
if(streak > 0) srv->splicestreak = streak;
if(small > 0) srv->splicesmall = small;
if(smallsz > 0) srv->splicesmall = smallsz;
}
}
#endif