Return-Path: Delivered-To: apmail-httpd-cvs-archive@httpd.apache.org Received: (qmail 27495 invoked by uid 500); 1 May 2002 06:41:38 -0000 Mailing-List: contact cvs-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list cvs@httpd.apache.org Received: (qmail 27471 invoked by uid 500); 1 May 2002 06:41:37 -0000 Delivered-To: apmail-httpd-2.0-cvs@apache.org Date: 1 May 2002 06:41:36 -0000 Message-ID: <20020501064136.25979.qmail@icarus.apache.org> From: brianp@apache.org To: httpd-2.0-cvs@apache.org Subject: cvs commit: httpd-2.0/server vhost.c X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N brianp 02/04/30 23:41:36 Modified: server vhost.c Log: Eliminate some sprintf calls Revision Changes Path 1.74 +2 -2 httpd-2.0/server/vhost.c Index: vhost.c =================================================================== RCS file: /home/cvs/httpd-2.0/server/vhost.c,v retrieving revision 1.73 retrieving revision 1.74 diff -u -r1.73 -r1.74 --- vhost.c 15 Apr 2002 02:58:11 -0000 1.73 +++ vhost.c 1 May 2002 06:41:36 -0000 1.74 @@ -760,7 +760,7 @@ * here to judge; apr_parse_addr_port() would think we had a port * but no address */ - host = apr_psprintf(r->pool, "%d", (int)port); + host = apr_itoa(r->pool, (int)port); } else if (port) { /* Don't throw the Host: header's port number away: @@ -769,7 +769,7 @@ * Like r->hostname, there should be a r->portno */ r->parsed_uri.port = port; - r->parsed_uri.port_str = apr_psprintf(r->pool, "%d", (int)port); + r->parsed_uri.port_str = apr_itoa(r->pool, (int)port); } /* if the hostname is an IPv6 numeric address string, it was validated