Skip to content

Commit

Permalink
Merge pull request #243 from CIPop/enumchange1
Browse files Browse the repository at this point in the history
Public API: avoid name collisions
  • Loading branch information
icraggs authored Aug 1, 2023
2 parents be4e665 + 023f9a8 commit 0792363
Show file tree
Hide file tree
Showing 22 changed files with 496 additions and 464 deletions.
12 changes: 6 additions & 6 deletions MQTTClient-C/samples/linux/stdoutsub.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2012, 2016 IBM Corp.
* Copyright (c) 2012, 2023 IBM Corp.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
Expand Down Expand Up @@ -82,15 +82,15 @@ struct opts_struct
char* clientid;
int nodelimiter;
char* delimiter;
enum QoS qos;
enum MQTTQoS qos;
char* username;
char* password;
char* host;
int port;
int showtopics;
} opts =
{
(char*)"stdout-subscriber", 0, (char*)"\n", QOS2, NULL, NULL, (char*)"localhost", 1883, 0
(char*)"stdout-subscriber", 0, (char*)"\n", MQTTQOS_2, NULL, NULL, (char*)"localhost", 1883, 0
};


Expand All @@ -105,11 +105,11 @@ void getopts(int argc, char** argv)
if (++count < argc)
{
if (strcmp(argv[count], "0") == 0)
opts.qos = QOS0;
opts.qos = MQTTQOS_0;
else if (strcmp(argv[count], "1") == 0)
opts.qos = QOS1;
opts.qos = MQTTQOS_1;
else if (strcmp(argv[count], "2") == 0)
opts.qos = QOS2;
opts.qos = MQTTQOS_2;
else
usage();
}
Expand Down
Loading

0 comments on commit 0792363

Please sign in to comment.