Skip to content

Commit

Permalink
Modifying other enum and struct names to avoid public API collisions.
Browse files Browse the repository at this point in the history
  • Loading branch information
CIPop committed Jul 28, 2023
1 parent 0696a3b commit 023f9a8
Show file tree
Hide file tree
Showing 19 changed files with 470 additions and 463 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 023f9a8

Please sign in to comment.