Code

connect.c: move duplicated code to a new function 'get_host_and_port'
authorMichael Lukashov <michael.lukashov@gmail.com>
Wed, 17 Feb 2010 20:56:02 +0000 (20:56 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 17 Feb 2010 23:06:45 +0000 (15:06 -0800)
commit72a534dab016813eec71935323b197650a2c0c9d
treefaa33354eabf3e2fe5c615ca8e99e8dc42f6e3f9
parente923eaeb901ff056421b9007adcbbce271caa7b6
connect.c: move duplicated code to a new function 'get_host_and_port'

The following functions:

  git_tcp_connect_sock (IPV6 version)
  git_tcp_connect_sock (no IPV6 version),
  git_proxy_connect

have common block of code. Move it to a new function 'get_host_and_port'

Signed-off-by: Michael Lukashov <michael.lukashov@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
connect.c