OpenBSD patches for ttsnoop.

Mostly adding std:: for strstream interfaces.
This commit is contained in:
Pascal Stumpf
2012-08-11 14:12:47 +02:00
committed by Jon Trulson
parent 76984653b4
commit 43bae997c8
9 changed files with 43 additions and 43 deletions

View File

@@ -42,7 +42,7 @@
#include <stdio.h>
#if defined(linux)
#if defined(linux) || defined(CSRG_BASED)
#include <strstream>
#else
#include <strstream.h>
@@ -213,7 +213,7 @@ _DtTtChooserSet(
XmTextFieldSetString( instance->chooserText, 0 );
XtVaSetValues( instance->chooser, XmNtitle, title, 0 );
ostrstream valuesStream;
std::ostrstream valuesStream;
valuesStream << itemCount << " " << valuesLabel;
if (itemCount != 1) valuesStream << "s";
valuesStream << ends;
@@ -314,7 +314,7 @@ choiceSelected(
break;
}
void *entity = DtTtNth( type, info->item_position - 1 );
ostrstream entityName;
std::ostrstream entityName;
if (isString) {
entityName << (char *)entity << ends;
} else {