Skip to content

Commit

Permalink
Fix #952 - s/uint/unsigned int/g
Browse files Browse the repository at this point in the history
  • Loading branch information
sawolf committed Mar 29, 2024
1 parent 4b7a6cf commit 19602fa
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
4 changes: 4 additions & 0 deletions Changelog
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
Nagios Core 4 Change Log
########################

4.5.2 - 2024-04-30
------------------
* Fix build when compiling against musl libc (#952) (Sebastian Wolf)

4.5.1 - 2024-02-28
-------------------
* Fix text rendering in Configuration -> Command Expansion when the command ends in whitespace (Thanks Joran LEREEC for reporting this issue) (Dylan Anderson)
Expand Down
10 changes: 5 additions & 5 deletions lib/t-utils.c
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#include "t-utils.h"

const char *cyan = "", *red = "", *green = "", *yellow = "", *reset = "";
uint passed, failed, t_verbose = 0;
static uint t_depth;
unsigned int passed, failed, t_verbose = 0;
static unsigned int t_depth;
static const char *indent_str = " ";

/* can't be used when a or b has side-effects, but we don't care here */
Expand All @@ -27,9 +27,9 @@ void t_set_colors(int force)
}
}

static void t_indent(uint depth)
static void t_indent(unsigned int depth)
{
uint i;
unsigned int i;
for (i = 0; i < depth; i++) {
printf("%s", indent_str);
}
Expand Down Expand Up @@ -136,7 +136,7 @@ int ok_int(int a, int b, const char *name)
return TEST_FAIL;
}

int ok_uint(uint a, uint b, const char *name)
int ok_unsigned int(unsigned int a, unsigned int b, const char *name)
{
if (a == b) {
t_pass("%s", name);
Expand Down
2 changes: 1 addition & 1 deletion lib/test-dkhash.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ static struct test_data *ddup(int x, int i, int j)
}

struct dkhash_check {
uint entries, count, max, added, removed;
unsigned int entries, count, max, added, removed;
int ent_delta, addrm_delta;
};

Expand Down

0 comments on commit 19602fa

Please sign in to comment.