From: Aditya Agarwal Date: Thu, 8 Mar 2007 03:10:29 +0000 (+0000) Subject: -- Fix compiler warnings X-Git-Tag: 0.2.0~1417 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=4265a2c4d9701078d595f8a319621247fa5e3b59;p=common%2Fthrift.git -- Fix compiler warnings 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 --- diff --git a/lib/cpp/src/transport/TFileTransport.cpp b/lib/cpp/src/transport/TFileTransport.cpp index 56009b7e..edba17ee 100644 --- a/lib/cpp/src/transport/TFileTransport.cpp +++ b/lib/cpp/src/transport/TFileTransport.cpp @@ -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); diff --git a/lib/cpp/src/transport/TFileTransport.h b/lib/cpp/src/transport/TFileTransport.h index 235a2fef..f4d25f48 100644 --- a/lib/cpp/src/transport/TFileTransport.h +++ b/lib/cpp/src/transport/TFileTransport.h @@ -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();