]> git.donarmstrong.com Git - bamtools.git/blobdiff - src/api/internal/io/BamPipe_p.cpp
Updated file headers (filename, license, description, etc)
[bamtools.git] / src / api / internal / io / BamPipe_p.cpp
index 92cf7985b1a08806c4d7a4f7b0e42cf99645ed52..2d571fd4c2500adbce043f59065a80f3ddc1efad 100644 (file)
@@ -2,7 +2,7 @@
 // BamPipe_p.cpp (c) 2011 Derek Barnett
 // Marth Lab, Department of Biology, Boston College
 // ---------------------------------------------------------------------------
-// Last modified: 25 October 2011 (DB)
+// Last modified: 10 November 2011 (DB)
 // ---------------------------------------------------------------------------
 // Provides BAM pipe-specific IO behavior
 // ***************************************************************************
@@ -34,8 +34,8 @@ bool BamPipe::Open(const IBamIODevice::OpenMode mode) {
     else if ( mode == IBamIODevice::WriteOnly )
         m_stream = freopen(0, "wb", stdout);
     else {
-        const string errorType = string( mode == IBamIODevice::ReadWrite ? "unsupported"
-                                                                         : "unknown" );
+        const string errorType = string( (mode == IBamIODevice::ReadWrite) ? "unsupported"
+                                                                           : "unknown" );
         const string message = errorType + " open mode requested";
         SetErrorString("BamPipe::Open", message);
         return false;
@@ -55,7 +55,7 @@ bool BamPipe::Open(const IBamIODevice::OpenMode mode) {
     return true;
 }
 
-bool BamPipe::Seek(const int64_t& ) {
+bool BamPipe::Seek(const int64_t&, const int) {
     SetErrorString("BamPipe::Seek", "random access not allowed in FIFO pipe");
     return false;
 }