From e4d4787581f0e00af743ae2eb41daf0e28003d23 Mon Sep 17 00:00:00 2001 From: Thiago Fransosi Farina Date: Tue, 12 Aug 2014 07:49:10 -0700 Subject: [PATCH] dist: Make vaddn private to buf.c This function does not have a declaration/prototype in a.h, and it is used only in buf.c, so it is local to it and thus can be marked as private by adding 'static' to it. LGTM=iant R=rsc, iant CC=golang-codereviews https://golang.org/cl/122300043 --- src/cmd/dist/buf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd/dist/buf.c b/src/cmd/dist/buf.c index 45fb1954d3..2ddc6be752 100644 --- a/src/cmd/dist/buf.c +++ b/src/cmd/dist/buf.c @@ -202,7 +202,7 @@ vadd(Vec *v, char *p) } // vaddn adds a string consisting of the n bytes at p to the vector. -void +static void vaddn(Vec *v, char *p, int n) { char *q; -- 2.48.1