-- Fix compiler warnings
authorAditya Agarwal <aditya@apache.org>
Thu, 8 Mar 2007 03:10:29 +0000 (03:10 +0000)
committerAditya Agarwal <aditya@apache.org>
Thu, 8 Mar 2007 03:10:29 +0000 (03:10 +0000)
Summary:
- These showed up when I was compiling on my local machine (cygwin!!)

Reviewed By: thrifty

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665055 13f79535-47bb-0310-9956-ffa450edef68

lib/cpp/src/transport/TFileTransport.cpp
lib/cpp/src/transport/TFileTransport.h

index 56009b7..edba17e 100644 (file)
@@ -596,7 +596,7 @@ void TFileTransport::performRecovery() {
       // point and punt on the error 
       readState_.resetState(readState_.lastDispatchPtr_);
       char errorMsg[1024];
-      sprintf(errorMsg, "TFileTransport: log file corrupted at offset:%lu", 
+      sprintf(errorMsg, "TFileTransport: log file corrupted at offset:%llu", 
               offset_ + readState_.lastDispatchPtr_);
       perror(errorMsg);
       throw TTransportException(errorMsg);
index 235a2fe..f4d25f4 100644 (file)
@@ -148,7 +148,7 @@ class TFileTransport : public TTransport {
   uint32_t read(uint8_t* buf, uint32_t len);
 
   // log-file specific functions
-  void seekToChunk(int chunk);
+  void seekToChunk(int32_t chunk);
   void seekToEnd();
   uint32_t getNumChunks();
   uint32_t getCurChunk();