]> Cypherpunks repositories - gostls13.git/commitdiff
dist: Make vaddn private to buf.c
authorThiago Fransosi Farina <thiago.farina@gmail.com>
Tue, 12 Aug 2014 14:49:10 +0000 (07:49 -0700)
committerIan Lance Taylor <iant@golang.org>
Tue, 12 Aug 2014 14:49:10 +0000 (07:49 -0700)
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

index 45fb1954d38c197f768e25ae269fda41a1871f12..2ddc6be7520243a51faf689de810caa48b24c806 100644 (file)
@@ -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;