Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[C] Fix regression in cmake version in codespaces #76

Merged
merged 2 commits into from
Nov 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion .devcontainer/postCreateCommand.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
# Install mosquitto client
sudo apt-add-repository ppa:mosquitto-dev/mosquitto-ppa -y
sudo apt-get update && sudo apt-get install mosquitto-clients mosquitto ninja-build libmosquitto-dev uuid-dev libjson-c-dev libprotobuf-c-dev -y
sudo apt-get update && sudo apt-get install mosquitto-clients mosquitto ninja-build libmosquitto-dev uuid-dev libjson-c-dev libprotobuf-c-dev ca-certificates gpg wget -y

# Install CMake (https://apt.kitware.com/)
wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | gpg --dearmor - | sudo tee /usr/share/keyrings/kitware-archive-keyring.gpg >/dev/null
echo 'deb [signed-by=/usr/share/keyrings/kitware-archive-keyring.gpg] https://apt.kitware.com/ubuntu/ focal main' | sudo tee /etc/apt/sources.list.d/kitware.list >/dev/null
sudo apt-get update
sudo rm /usr/share/keyrings/kitware-archive-keyring.gpg
sudo apt-get install kitware-archive-keyring
sudo apt-get install cmake -y

#Install step cli
wget https://github.com/smallstep/cli/releases/download/v0.24.4/step-cli_0.24.4_amd64.deb
Expand Down
2 changes: 1 addition & 1 deletion scenarios/getting_started/c/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ int main(int argc, char* argv[])
struct mosquitto* mosq;
int result = MOSQ_ERR_SUCCESS;

mqtt_client_obj obj;
mqtt_client_obj obj = { 0 };
obj.mqtt_version = MQTT_VERSION;

if ((mosq = mqtt_client_init(true, argv[1], on_connect_with_subscribe, &obj)) == NULL)
Expand Down
2 changes: 1 addition & 1 deletion scenarios/telemetry/c/telemetry_producer/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ int main(int argc, char* argv[])
struct mosquitto* mosq;
int result = MOSQ_ERR_SUCCESS;

mqtt_client_obj obj;
mqtt_client_obj obj = { 0 };
obj.mqtt_version = MQTT_VERSION;

if ((mosq = mqtt_client_init(true, argv[1], NULL, &obj)) == NULL)
Expand Down