git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Tay Ray Chuan <rctay89@gmail.com>
To: Ilari Liusvaara <ilari.liusvaara@elisanet.fi>
Cc: git@vger.kernel.org
Subject: Re: [PATCH 1/2] Support addresses with ':' in git-daemon
Date: Wed, 27 Jan 2010 06:53:28 +0800	[thread overview]
Message-ID: <be6fef0d1001261453v2fd624fdv88640aa706c0009@mail.gmail.com> (raw)
In-Reply-To: <1264530282-4783-2-git-send-email-ilari.liusvaara@elisanet.fi>

Hi,

On Wed, Jan 27, 2010 at 2:24 AM, Ilari Liusvaara
<ilari.liusvaara@elisanet.fi> wrote:
> diff --git a/daemon.c b/daemon.c
> index 360635e..6c2bd97 100644
> --- a/daemon.c
> +++ b/daemon.c
> @@ -399,6 +399,33 @@ static char *xstrdup_tolower(const char *str)
>        return dup;
>  }
>
> +static void parse_host_and_port(char *hostport, char **host,
> +       char **port)
> +{
> +       if (*hostport == '[') {
> +               char *end;
> +
> +               end = strchr(hostport, ']');
> +               if (!end)
> +                       die("Invalid reqeuest ('[' without ']')");

s/reqeuest/request/.

-- 
Cheers,
Ray Chuan

  reply	other threads:[~2010-01-26 22:53 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-26 18:24 [PATCH 0/2] Allow using ':' in git:// hostname Ilari Liusvaara
2010-01-26 18:24 ` [PATCH 1/2] Support addresses with ':' in git-daemon Ilari Liusvaara
2010-01-26 22:53   ` Tay Ray Chuan [this message]
2010-01-26 18:24 ` [PATCH 2/2] Allow use of []-wrapped addresses in git:// Ilari Liusvaara
2010-01-26 19:59 ` [PATCH 0/2] Allow using ':' in git:// hostname Junio C Hamano

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=be6fef0d1001261453v2fd624fdv88640aa706c0009@mail.gmail.com \
    --to=rctay89@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=ilari.liusvaara@elisanet.fi \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).