]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix build errors in rev.14057 and rev.14058
authorAmos Jeffries <squid3@treenet.co.nz>
Mon, 18 May 2015 15:51:14 +0000 (08:51 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Mon, 18 May 2015 15:51:14 +0000 (08:51 -0700)
src/store.cc

index 6fa07933f60b8d6340b256f839dda3cb5583c240..112f45477642f33374fc5a1bb6b585617581410b 100644 (file)
@@ -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<int>(sizeof(buf))) {
         append(buf, x);
         return;
     }