less compiler warnings

This commit is contained in:
john30
2015-03-20 23:01:06 +01:00
parent f9bda91d94
commit 5da560b79a
8 changed files with 19 additions and 15 deletions
+1 -1
View File
@@ -67,7 +67,7 @@ Device* Device::create(const char* name, const bool checkDevice,
}
free(host);
address.sin_family = AF_INET;
address.sin_port = htons(port);
address.sin_port = htons((uint16_t)port);
return new NetworkDevice(name, address, logRawFunc);
}
}