From: wessels <> Date: Tue, 14 Nov 2000 03:42:33 +0000 (+0000) Subject: DW: X-Git-Tag: SQUID_3_0_PRE1~1773 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=110eb4e542c36a3bd612ed5c836de53494f3c2d5;p=thirdparty%2Fsquid.git DW: - http.c: In function `httpBuildRequestHeader': http.c:752: warning: double format, http_version_t arg (arg 4) --- diff --git a/src/http.cc b/src/http.cc index 33cee575eb..89d6817ff5 100644 --- a/src/http.cc +++ b/src/http.cc @@ -1,6 +1,6 @@ /* - * $Id: http.cc,v 1.370 2000/11/13 12:25:12 adrian Exp $ + * $Id: http.cc,v 1.371 2000/11/13 20:42:33 wessels Exp $ * * DEBUG: section 11 Hypertext Transfer Protocol (HTTP) * AUTHOR: Harvest Derived @@ -749,7 +749,9 @@ httpBuildRequestHeader(request_t * request, /* append Via */ if (httpRequestHdrAllowedByName(HDR_VIA)) { String strVia = httpHeaderGetList(hdr_in, HDR_VIA); - snprintf(bbuf, BBUF_SZ, "%3.1f %s", orig_request->http_ver, ThisCache); + snprintf(bbuf, BBUF_SZ, "%d.%d %s", + orig_request->http_ver.major, + orig_request->http_ver.minor, ThisCache); strListAdd(&strVia, bbuf, ','); httpHeaderPutStr(hdr_out, HDR_VIA, strBuf(strVia)); stringClean(&strVia); @@ -1019,7 +1021,8 @@ httpSendRequestEntryDone(int fd, char *bufnotused, size_t size, int errflag, voi } void -httpBuildVersion(http_version_t *version, unsigned int major,unsigned int minor) { - version->major=major; - version->minor=minor; +httpBuildVersion(http_version_t * version, unsigned int major, unsigned int minor) +{ + version->major = major; + version->minor = minor; }