Skip to content

Commit

Permalink
dlt-test-init-free: fix build failure with strict compiler flags, due…
Browse files Browse the repository at this point in the history
… to uint being undefined.

This is actually an "int" type, looking at the test implementation

Signed-off-by: Gianfranco Costamagna <costamagnagianfranco@yahoo.it>
Signed-off-by: Gianfranco Costamagna <locutusofborg@debian.org>
  • Loading branch information
LocutusOfBorg authored and ssugiura committed Jan 27, 2020
1 parent 238481d commit 379738e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tests/dlt-test-init-free.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

void exec(const char *cmd, char *buffer, size_t length);
void printMemoryUsage();
char *occupyMemory(uint size);
char *occupyMemory(int size);
void do_example_test();
void do_dlt_test();

Expand Down Expand Up @@ -131,7 +131,7 @@ void printMemoryUsage()
printf("%s", result);
}

char *occupyMemory(uint size)
char *occupyMemory(int size)
{
char *buf = (char *)malloc(size * sizeof(char));

Expand Down

0 comments on commit 379738e

Please sign in to comment.