Use uint32_t/uint16_t instead of unsigned long / unsigned short where required

This commit is contained in:
Vladimir Dubrovin committed 2026-04-08 21:13:18 +03:00
1 parent 855c04d8f6
commit 483542b914
17 files changed
+117 -128

No files matched your search

+3 -3
View File
@@ -37,7 +37,7 @@ void * sockschild(struct clientparam* param) {
SOCKET s;
unsigned size;
SASIZETYPE sasize;
unsigned short port = 0;
uint16_t port = 0;
unsigned char * buf=NULL;
unsigned char c;
unsigned char command=0;
@@ -102,7 +102,7 @@ void * sockschild(struct clientparam* param) {
buf[0] = (unsigned char) res;
if ((res = sockgetcharcli(param, conf.timeouts[SINGLEBYTE_S], 0)) == EOF) {RETURN(441);}
buf[1] = (unsigned char) res;
port = *(unsigned short*)buf;
port = *(uint16_t*)buf;
c = 1;
}
@@ -162,7 +162,7 @@ void * sockschild(struct clientparam* param) {
buf[0] = (unsigned char) res;
if ((res = sockgetcharcli(param, conf.timeouts[SINGLEBYTE_S], 0)) == EOF) {RETURN(441);}
buf[1] = (unsigned char) res;
port = *(unsigned short*)buf;
port = *(uint16_t*)buf;
}
else {