update husky/ServerFrame.cpp for removing warning in g++

This commit is contained in:
wyy 2013-11-16 16:37:05 +08:00
parent 2684e9f2e6
commit 9bbc1a3164
3 changed files with 3 additions and 3 deletions

View File

@ -17,7 +17,7 @@ unzip cppjieba-master.zip
cd cppjieba-master
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr ..
cmake .. -Wno-dev -DCMAKE_INSTALL_PREFIX=/usr
make
sudo make install
```

View File

@ -6,7 +6,7 @@ ADD_LIBRARY(cppjieba STATIC ${LIBCPPJIEBA_SRC})
ADD_EXECUTABLE(segment segment.cpp)
ADD_EXECUTABLE(server server.cpp)
LINK_DIRECTORIES(husky)
LINK_DIRECTORIES(Husky)
TARGET_LINK_LIBRARIES(segment cppjieba)
TARGET_LINK_LIBRARIES(server cppjieba husky pthread)

View File

@ -156,7 +156,7 @@ namespace Husky
char chHttpHeader[2048];
sprintf(chHttpHeader, RESPONSE_FORMAT, RESPONSE_CHARSET_UTF8, strSnd.length());
sprintf(chHttpHeader, RESPONSE_FORMAT, RESPONSE_CHARSET_UTF8, int(strSnd.length()));
strHttpResp=chHttpHeader;
strHttpResp+=strSnd;