Skip to content

Commit edaef27

Browse files
committed
Carry over from Cog
1 parent 9661836 commit edaef27

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/Mac OS/sqMacSSL.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ sqInt sqCreateSSL(void)
288288
}
289289

290290
if (handle >= handleMax) {
291-
int delta = 100;
291+
const int delta = 100;
292292
/* Resize the handle buffer */
293293
handleBuf = (sqSSL**)realloc(handleBuf,
294294
(handleMax + delta) * sizeof(sqSSL*));

src/Win32/sqWin32SSL.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,8 @@ sqInt sqCreateSSL(void) {
380380
if(handleBuf[handle] == NULL) break;
381381

382382
if(handle >= handleMax) {
383-
int i, delta = 100;
383+
const int delta = 100;
384+
int i;
384385
/* Resize the handle buffer */
385386
handleBuf = realloc(handleBuf, (handleMax+delta)*sizeof(void*));
386387
for(i = handleMax; i < handleMax+delta; i++)

0 commit comments

Comments
 (0)