From: Amos Jeffries Date: Mon, 18 May 2015 15:51:14 +0000 (-0700) Subject: Fix build errors in rev.14057 and rev.14058 X-Git-Tag: merge-candidate-3-v1~101^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1fab834457cac20a8dd64038d0d5aa97dcff0ac9;p=thirdparty%2Fsquid.git Fix build errors in rev.14057 and rev.14058 --- diff --git a/src/store.cc b/src/store.cc index 6fa07933f6..112f454776 100644 --- a/src/store.cc +++ b/src/store.cc @@ -881,19 +881,19 @@ StoreEntry::vappendf(const char *fmt, va_list vargs) VA_COPY(ap,vargs); errno = 0; if ((x = vsnprintf(buf, sizeof(buf), fmt, ap)) < 0) { - fatalf( xstrerror(errno)); + fatal(xstrerr(errno)); return; } va_end(ap); #else /* VA_COPY */ errno = 0; if ((x = vsnprintf(buf, sizeof(buf), fmt, vargs)) < 0) { - fatalf( xstrerror(errno)); + fatal(xstrerr(errno)); return; } #endif /*VA_COPY*/ - if (x < sizeof(buf)) { + if (x < static_cast(sizeof(buf))) { append(buf, x); return; }