diff options
author | Thiago Fransosi Farina <thiago.farina@gmail.com> | 2014-08-12 07:49:10 -0700 |
---|---|---|
committer | Thiago Fransosi Farina <thiago.farina@gmail.com> | 2014-08-12 07:49:10 -0700 |
commit | b262976a2a4942d7507fec0ab995b6db30a94a96 (patch) | |
tree | a0d9cb17139ff394224409c82f50446d12414a77 | |
parent | 7fa3f1134e25e2a9ee6b56c71f42bcf5792a2a25 (diff) | |
download | go-b262976a2a4942d7507fec0ab995b6db30a94a96.tar.gz |
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://codereview.appspot.com/122300043
Committer: Ian Lance Taylor <iant@golang.org>
-rw-r--r-- | src/cmd/dist/buf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/dist/buf.c b/src/cmd/dist/buf.c index 45fb1954d..2ddc6be75 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; |