mirror of
https://github.com/3proxy/3proxy.git
synced 2026-11-22 23:59:41 +08:00
Use uint32_t/uint16_t instead of unsigned long / unsigned short where required
This commit is contained in:
1 parent
855c04d8f6
commit
483542b914
17 files changed
+117
-128
No files matched your search
+3
-3
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user