Merge branch 'travis-container'

This commit is contained in:
Tatsuhiro Tsujikawa 2015-04-23 00:00:06 +09:00
commit 1a99bcc860
3 changed files with 26 additions and 25 deletions

View File

@ -1,31 +1,31 @@
language: cpp language: cpp
compiler: compiler:
- clang - clang
#Disable gcc build for the moment... - gcc
# - gcc sudo: false
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.9
- libstdc++-4.9-dev
- autoconf
- automake
- autotools-dev
- libtool
- pkg-config
- zlib1g-dev
- libcunit1-dev
- libssl-dev
- libxml2-dev
- libev-dev
- libevent-dev
- libjansson-dev
- libjemalloc-dev
before_install: before_install:
- $CC --version - $CC --version
- sudo add-apt-repository --yes ppa:ubuntu-toolchain-r/test - if [ "$CXX" = "g++" ]; then export CXX="g++-4.9" CC="gcc-4.9"; fi
- sudo apt-get update -qq
#Install and use gcc-4.8 (don't build with gcc-4.6)
#libstdc++-4.8 is needed by Clang to build too
- sudo apt-get -qq install g++-4.8 libstdc++-4.8-dev
- >
sudo apt-get install --no-install-recommends -qq
autoconf
automake
autotools-dev
libtool
pkg-config
zlib1g-dev
libcunit1-dev
libssl-dev
libxml2-dev
libev-dev
libevent-dev
libjansson-dev
libjemalloc-dev
- if [ "$CXX" = "g++" ]; then export CXX="g++-4.8" CC="gcc-4.8"; fi
- $CC --version - $CC --version
before_script: before_script:
- autoreconf -i - autoreconf -i

View File

@ -699,7 +699,8 @@ static ssize_t fd_read_callback(nghttp2_session *session _U_,
nghttp2_data_source *source, nghttp2_data_source *source,
void *user_data _U_) { void *user_data _U_) {
stream *strm = source->ptr; stream *strm = source->ptr;
ssize_t nread = (int64_t)length < strm->fileleft ? length : strm->fileleft; ssize_t nread =
(int64_t)length < strm->fileleft ? (int64_t)length : strm->fileleft;
*data_flags |= NGHTTP2_DATA_FLAG_NO_COPY; *data_flags |= NGHTTP2_DATA_FLAG_NO_COPY;

View File

@ -114,7 +114,7 @@ static int memeq(const void *s1, const void *s2, size_t n) {
* This function was generated by genlibtokenlookup.py. Inspired by * This function was generated by genlibtokenlookup.py. Inspired by
* h2o header lookup. https://github.com/h2o/h2o * h2o header lookup. https://github.com/h2o/h2o
*/ */
static inline int lookup_token(const uint8_t *name, size_t namelen) { static int lookup_token(const uint8_t *name, size_t namelen) {
switch (namelen) { switch (namelen) {
case 2: case 2:
switch (name[1]) { switch (name[1]) {