From mboxrd@z Thu Jan 1 00:00:00 1970 From: Junio C Hamano Subject: [PATCH v2 4/6] connect.c: make parse_feature_value() static Date: Tue, 17 Sep 2013 19:31:27 -0700 Message-ID: <1379471489-26280-5-git-send-email-gitster@pobox.com> References: <20130906155608.GF12966@inner.h.apk.li> <1379471489-26280-1-git-send-email-gitster@pobox.com> Cc: Andreas Krey To: git@vger.kernel.org X-From: git-owner@vger.kernel.org Wed Sep 18 04:31:48 2013 Return-path: Envelope-to: gcvg-git-2@plane.gmane.org Received: from vger.kernel.org ([209.132.180.67]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VM7YR-0006Mb-D7 for gcvg-git-2@plane.gmane.org; Wed, 18 Sep 2013 04:31:47 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751706Ab3IRCbn (ORCPT ); Tue, 17 Sep 2013 22:31:43 -0400 Received: from b-pb-sasl-quonix.pobox.com ([208.72.237.35]:37846 "EHLO smtp.pobox.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751696Ab3IRCbl (ORCPT ); Tue, 17 Sep 2013 22:31:41 -0400 Received: from smtp.pobox.com (unknown [127.0.0.1]) by b-sasl-quonix.pobox.com (Postfix) with ESMTP id C621B39184; Wed, 18 Sep 2013 02:31:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:date:message-id:in-reply-to:references; s=sasl; bh=QIDL VAzU5nZ0KbRgghhTuq2vw28=; b=juR/jxnkhmzeoaY6MpXc2dvxfkDOA7pgfLyk 1Tj0MrJ/em6Qpm/o+u+oMeFdp3xx2NTZ4E1JTFO6BeDaKfnxU9LRH7Biki/2t4JY 3vjzm0a+KKFVJdINrad9u/l05OHY94TbmlkbYrbGoKsiTE0KrWs6MlIZhqj+Qt86 6CcqqFc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:date:message-id:in-reply-to:references; q=dns; s=sasl; b= Mg8pyt2yfYUt4I0d0qZHBziJqfDS+h8bFW/YbY1/oWLyKI+8qbB1tcwsRmtM8Y/7 CzSHYAp55BQ7vKbPtINv2Wdiggzd3rusc79+Br/d9ymn6ShRYhzra0aroan6mWZB D2eaqNQVEO88a9aTpPbho3O9P3wpRlrKIdcJ367BGdE= Received: from b-pb-sasl-quonix.pobox.com (unknown [127.0.0.1]) by b-sasl-quonix.pobox.com (Postfix) with ESMTP id BC7D139183; Wed, 18 Sep 2013 02:31:40 +0000 (UTC) Received: from pobox.com (unknown [72.14.226.9]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by b-sasl-quonix.pobox.com (Postfix) with ESMTPSA id 1CE7C3917F; Wed, 18 Sep 2013 02:31:40 +0000 (UTC) X-Mailer: git-send-email 1.8.4-585-g8d1dcaf In-Reply-To: <1379471489-26280-1-git-send-email-gitster@pobox.com> X-Pobox-Relay-ID: 72EF0138-200A-11E3-805B-CA9B8506CD1E-77302942!b-pb-sasl-quonix.pobox.com Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: Signed-off-by: Junio C Hamano --- cache.h | 1 - connect.c | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cache.h b/cache.h index 85b544f..2c853ba 100644 --- a/cache.h +++ b/cache.h @@ -1098,7 +1098,6 @@ extern struct ref **get_remote_heads(int in, char *src_buf, size_t src_len, extern int server_supports(const char *feature); extern int parse_feature_request(const char *features, const char *feature); extern const char *server_feature_value(const char *feature, int *len_ret); -extern const char *parse_feature_value(const char *feature_list, const char *feature, int *len_ret); extern struct packed_git *parse_pack_index(unsigned char *sha1, const char *idx_path); diff --git a/connect.c b/connect.c index a0783d4..e4c7ae6 100644 --- a/connect.c +++ b/connect.c @@ -8,6 +8,7 @@ #include "url.h" static char *server_capabilities; +static const char *parse_feature_value(const char *, const char *, int *); static int check_ref(const char *name, int len, unsigned int flags) { @@ -116,7 +117,7 @@ struct ref **get_remote_heads(int in, char *src_buf, size_t src_len, return list; } -const char *parse_feature_value(const char *feature_list, const char *feature, int *lenp) +static const char *parse_feature_value(const char *feature_list, const char *feature, int *lenp) { int len; -- 1.8.4-585-g8d1dcaf