mirror of
https://github.com/akuker/RASCSI.git
synced 2025-08-07 15:25:54 +00:00
fd needs to be initialized in order to compile (#150)
Co-authored-by: akuker <akuker@gmail.com>
This commit is contained in:
@@ -29,7 +29,7 @@ using namespace rascsi_interface;
|
|||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
int SendCommand(const string& hostname, const PbCommand& command)
|
int SendCommand(const string& hostname, const PbCommand& command)
|
||||||
{
|
{
|
||||||
int fd;
|
int fd = -1;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
struct hostent *host = gethostbyname(hostname.c_str());
|
struct hostent *host = gethostbyname(hostname.c_str());
|
||||||
|
Reference in New Issue
Block a user