Skip to content

Commit 89a721e

Browse files
Fix DistLoggerExample.cxx (#691)
Replace undefined `uint` with `unsigned int`.
1 parent d037ec4 commit 89a721e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/connext_dds/distributed_logger/c++11/DistLoggerExample.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ void distlogger_example_main(
2424
const string application_kind,
2525
const int domain_id,
2626
const int sleep,
27-
const uint iterations)
27+
const unsigned int iterations)
2828
{
2929
// First, create the options to personalize Distributed Logger.
3030
// If no options are provided, default ones will be created.
@@ -45,7 +45,7 @@ void distlogger_example_main(
4545
// The log messages are published as DDS topics, which allows your DDS
4646
// applications to subscribe to them. You can also run rtiddsspy or
4747
// RTI Admin Console to visualize the logs.
48-
for (uint i = 1; i <= iterations; ++i) {
48+
for (unsigned int i = 1; i <= iterations; ++i) {
4949
cout << "\nIteration #" << i << endl;
5050

5151
dist_logger.debug("This is a debug message");
@@ -67,7 +67,7 @@ int main(int argc, char *argv[])
6767

6868
int domain_id = 0;
6969
int sleep = 1;
70-
uint iterations = 50;
70+
unsigned int iterations = 50;
7171

7272
for (int i = 1; i < argc;) {
7373
const string &param = argv[i++];

0 commit comments

Comments
 (0)