aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main
diff options
context:
space:
mode:
authorGravatar Thiago Farina <tfarina@chromium.org>2015-04-28 20:26:45 +0000
committerGravatar Han-Wen Nienhuys <hanwen@google.com>2015-04-28 21:14:33 +0000
commit0b6963e741de8b189fa71915cad82410cdace8f3 (patch)
treeb4d162cba71f61b78ef331bae36f24bc2652e55b /src/main
parentda65629dde0b56462a45418cdbbc610e07c851a9 (diff)
Cleanup: Mark some functions as static.
Like the other functions in this file, these do not need to be public. So lets mark them as static so they are consistent with the surrounding code. -- Change-Id: I8de8d1578c0f9bdfec0fee3f67b527de4e135a82 MOS_MIGRATED_REVID=92281179
Diffstat (limited to 'src/main')
-rw-r--r--src/main/cpp/blaze.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/main/cpp/blaze.cc b/src/main/cpp/blaze.cc
index 0cda0df61f..25712fa644 100644
--- a/src/main/cpp/blaze.cc
+++ b/src/main/cpp/blaze.cc
@@ -146,7 +146,7 @@ struct GlobalVariables {
static GlobalVariables *globals;
-void InitGlobals() {
+static void InitGlobals() {
globals = new GlobalVariables;
globals->sigint_count = 0;
globals->startup_time = 0;
@@ -386,7 +386,7 @@ static void AddLoggingArgs(vector<string>* args) {
// Join the elements of the specified array with NUL's (\0's), akin to the
// format of /proc/$PID/cmdline.
-string GetArgumentString(const vector<string>& argument_array) {
+static string GetArgumentString(const vector<string>& argument_array) {
string result;
blaze_util::JoinStrings(argument_array, '\0', &result);
return result;
@@ -1520,7 +1520,7 @@ static string GetMountpoint(string dir) {
return "/";
}
-void SetupStreams() {
+static void SetupStreams() {
// Line-buffer stderr, since we always flush at the end of a server
// message. This saves lots of single-char calls to write(2).
// This doesn't work if any writes to stderr have already occurred!
@@ -1654,6 +1654,7 @@ int main(int argc, const char *argv[]) {
}
return 0;
}
+
} // namespace blaze
int main(int argc, const char *argv[]) {