]> git.saurik.com Git - apt.git/commitdiff
mark not-declared helper function for showsrc as static
authorDavid Kalnischkies <david@kalnischkies.de>
Thu, 14 Jan 2016 16:24:27 +0000 (17:24 +0100)
committerDavid Kalnischkies <david@kalnischkies.de>
Thu, 14 Jan 2016 16:33:58 +0000 (17:33 +0100)
Git-Dch: Ignore

apt-private/private-show.cc

index 6fb3791f829cd4d7f34aed7d1691384fc6c4f5eb..792c455a8285ecee38ed00fd2328e3e0822c4131 100644 (file)
@@ -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();