Commit 4a6a40b5 authored by Ciarán Ó Rourke's avatar Ciarán Ó Rourke
Browse files

Removed unneccesary .str() calls

parent 8fabfff8
......@@ -79,4 +79,4 @@ public:
private:
std::unique_ptr<proxygen::HTTPMessage> headers;
};
}
\ No newline at end of file
}
......@@ -168,9 +168,9 @@ FiPhobo::~FiPhobo()
{
close(fifo_descriptor);
}
if( access( fifoName.c_str(), F_OK ) != -1 )
if( access( fifoName, F_OK ) != -1 )
{
remove(fifoName.c_str());
remove(fifoName);
}
}
......@@ -180,16 +180,16 @@ void FiPhobo::startFIFO()
std::cout << "Phobos_Layer::startFIFO" << std::endl;
#endif
int rc = mkfifo(fifoName.c_str(), 0777);
if(rc)
if(rc < 0)
{
printf("mkfifo returned an error: %s\n", std::strerror(errno));
return;
}
fifo_descriptor = open(fifoName.c_str(), O_RDWR);
fifo_descriptor = open(fifoName, O_RDWR);
if (fifo_descriptor < 0)
{
printf("Could not open file: %s\n", fifoName);
printf("Could not open fifo: %s\n", fifoName);
return;
}
......@@ -197,4 +197,4 @@ void FiPhobo::startFIFO()
std::cout << "End of Phobos_Layer::startFIFO" << std::endl;
#endif
}
} // namespace fiphoboserver
\ No newline at end of file
} // namespace fiphoboserver
......@@ -46,4 +46,4 @@ private:
bool ioRunning = false;
};
} // namespace fiphoboserver
\ No newline at end of file
} // namespace fiphoboserver
......@@ -221,4 +221,4 @@ void FiPhobo::startFIFO()
return;
}
}
} // namespace fiphoboserver
\ No newline at end of file
} // namespace fiphoboserver
......@@ -46,4 +46,4 @@ private:
bool ioRunning = false;
};
} // namespace fiphoboserver
\ No newline at end of file
} // namespace fiphoboserver
......@@ -12,7 +12,7 @@
#include <proxygen/httpserver/RequestHandler.h>
#include "../S3_header.h"
#include "../fiphobo/fiphobo_blocking.h"
#include "../fiphobo/fiphobo.h"
namespace proxygen {
class ResponseHandler;
......
......@@ -17,7 +17,7 @@
#include <proxygen/httpserver/RequestHandler.h>
#include <proxygen/httpserver/ResponseBuilder.h>
#include "../fiphobo/fiphobo_blocking.h"
#include "../fiphobo/fiphobo.h"
namespace fiphoboserver {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment