reqs.c: fix two implicit cast warnings.
Michael
This commit is contained in:
1 parent
408c781d14
commit
735c9cb70f
1 file changed
+2
-2
+2
-2
@@ -1592,7 +1592,7 @@ connect_to_upstream (struct conn_s *connptr, struct request_s *request)
|
||||
{
|
||||
len = strlen (request->host) + 7;
|
||||
|
||||
combined_string = safemalloc (len);
|
||||
combined_string = (char *)safemalloc (len);
|
||||
if (!combined_string)
|
||||
{
|
||||
return -1;
|
||||
@@ -1603,7 +1603,7 @@ connect_to_upstream (struct conn_s *connptr, struct request_s *request)
|
||||
else
|
||||
{
|
||||
len = strlen (request->host) + strlen (request->path) + 14;
|
||||
combined_string = safemalloc (len);
|
||||
combined_string = (char *)safemalloc (len);
|
||||
if (!combined_string)
|
||||
{
|
||||
return -1;
|
||||
|
||||
Reference in new issue
Block a user