OpenBSD patches for ttsnoop.
Mostly adding std:: for strstream interfaces.
This commit is contained in:
committed by
Jon Trulson
parent
76984653b4
commit
43bae997c8
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user