Sfoglia il codice sorgente

mark not-declared helper function for showsrc as static

Git-Dch: Ignore
David Kalnischkies 10 anni fa
parent
commit
f19525d509
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      apt-private/private-show.cc

+ 2 - 2
apt-private/private-show.cc

@@ -299,9 +299,9 @@ bool ShowPackage(CommandLine &CmdL)					/*{{{*/
    return true;
    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;
    SHA1Summation sha1;
    sha1.Add(input.c_str(), input.length());
    sha1.Add(input.c_str(), input.length());
    return sha1.Result().Value();
    return sha1.Result().Value();