Skip to content

Commit

Permalink
Fix compile warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
icraggs committed Apr 18, 2024
1 parent 7941934 commit e84b19b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
7 changes: 2 additions & 5 deletions test/test_mqtt4async.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2009, 2022 IBM Corp., Ian Craggs
* Copyright (c) 2009, 2024 IBM Corp., Ian Craggs
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
Expand Down Expand Up @@ -601,13 +601,10 @@ int test2(struct Options options)
return failures;
}




int main(int argc, char** argv)
{
int rc = 0;
int (*tests[])() = {NULL, test1, test2};
int (*tests[])(struct Options) = {NULL, test1, test2};
int i;

xml = fopen("TEST-MQTT4sync.xml", "w");
Expand Down
4 changes: 2 additions & 2 deletions test/test_mqtt4sync.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2009, 2022 IBM Corp., Ian Craggs
* Copyright (c) 2009, 2024 IBM Corp., Ian Craggs
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
Expand Down Expand Up @@ -477,7 +477,7 @@ int test2(struct Options options)
int main(int argc, char** argv)
{
int rc = 0;
int (*tests[])() = {NULL, test1, test2};
int (*tests[])(struct Options) = {NULL, test1, test2};
int i;

xml = fopen("TEST-MQTT4sync.xml", "w");
Expand Down

0 comments on commit e84b19b

Please sign in to comment.