Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
$NetBSD: patch-src_zm__utils.cpp,v 1.1 2013/03/24 16:47:47 joerg Exp $
--- src/zm_utils.cpp.orig 2011-06-21 09:19:11.000000000 +0000
+++ src/zm_utils.cpp
@@ -38,21 +38,6 @@ const std::string stringtf( const char *
return( tempString );
}
-const std::string stringtf( const std::string &format, ... )
-{
- va_list ap;
- char tempBuffer[8192];
- std::string tempString;
-
- va_start(ap, format );
- vsnprintf( tempBuffer, sizeof(tempBuffer), format.c_str() , ap );
- va_end(ap);
-
- tempString = tempBuffer;
-
- return( tempString );
-}
-
bool startsWith( const std::string &haystack, const std::string &needle )
{
return( haystack.substr( 0, needle.length() ) == needle );