From: Thiago Fransosi Farina Date: Tue, 12 Aug 2014 14:49:10 +0000 (-0700) Subject: dist: Make vaddn private to buf.c X-Git-Tag: go1.4beta1~848 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=e4d4787581f0e00af743ae2eb41daf0e28003d23;p=gostls13.git 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 --- 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;