Explorar el Código

mark not-declared helper function for showsrc as static

Git-Dch: Ignore
David Kalnischkies hace 10 años
padre
commit
f19525d509
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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;
 }
 									/*}}}*/
-// 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();