summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Kalnischkies <david@kalnischkies.de>2016-01-14 17:24:27 +0100
committerDavid Kalnischkies <david@kalnischkies.de>2016-01-14 17:33:58 +0100
commitf19525d509d45790ae1adcd126c06431aecf522c (patch)
tree2de13830cb137742f084e2f8ff9ea714a38f1688
parentb0ce7c65309585d4b9752bb571a0e616036eb162 (diff)
mark not-declared helper function for showsrc as static
Git-Dch: Ignore
-rw-r--r--apt-private/private-show.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/apt-private/private-show.cc b/apt-private/private-show.cc
index 6fb3791f8..792c455a8 100644
--- a/apt-private/private-show.cc
+++ b/apt-private/private-show.cc
@@ -299,9 +299,9 @@ bool ShowPackage(CommandLine &CmdL) /*{{{*/
return true;
}
/*}}}*/
-// XXX: move to hashes.h: HashString::FromString() ? /*{{{*/
-std::string Sha1FromString(std::string input)
+static std::string Sha1FromString(std::string const &input) /*{{{*/
{
+ // XXX: move to hashes.h: HashString::FromString() ?
SHA1Summation sha1;
sha1.Add(input.c_str(), input.length());
return sha1.Result().Value();