Browse Source

framework changes

Kolja Strohm 2 years ago
parent
commit
2fc13ed6c8
2 changed files with 3 additions and 3 deletions
  1. 2 2
      Network/HttpRequest.cpp
  2. 1 1
      Network/Klient.cpp

+ 2 - 2
Network/HttpRequest.cpp

@@ -67,7 +67,7 @@ Answer* PostRequest::execute() const
 						Text* len = answer.getTeilText(p);
 						len->remove(len->positionVon("\n"), len->getLength());
 						len->remove("\r");
-						length = *len;
+						length = (int)*len;
 						len->release();
 					}
 				}
@@ -118,7 +118,7 @@ Answer::Answer(const char* answer)
 	line->remove(0, trenn + 1);
 	trenn = line->positionVon(" ");
 	tmp = line->getTeilText(0, trenn);
-	this->statusNumber = *tmp;
+	this->statusNumber = (int)*tmp;
 	tmp->release();
 	line->remove(0, trenn + 1);
 	this->statusText = *line;

+ 1 - 1
Network/Klient.cpp

@@ -270,7 +270,7 @@ bool SSLKlient::verbinde(unsigned short port, const char* ip) // verbindet mit S
 	Text adr = ip;
 	adr += ":";
 	adr += port;
-	BIO_set_conn_hostname(bio, adr);
+	BIO_set_conn_hostname(bio, (const char*)adr);
 	connected = BIO_do_connect(bio) > 0;
 	if (connected && BIO_do_handshake(bio) <= 0)
 		trenne();