Skip to content

Commit

Permalink
(cleanups)
Browse files Browse the repository at this point in the history
  • Loading branch information
mpartel committed Feb 14, 2021
1 parent 3284e7b commit ea8a7e2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ const char *my_dirname(char *path)
} else if (strcmp(path, "/") == 0) {
return "/";
} else {
int len = strlen(path);
size_t len = strlen(path);
char *p = path + len - 1;
while (p > path) {
if (*p == '/') {
Expand All @@ -141,7 +141,7 @@ static char **dup_argv(int argc, const char * const *argv, struct arena *arena)
char **next_ptr = pointer_list;

for (int i = 0; i < argc; ++i) {
int len = strlen(argv[i]);
size_t len = strlen(argv[i]);
char *str = arena_malloc(arena, len + 1);
memcpy(str, argv[i], len + 1);
*next_ptr = str;
Expand Down
2 changes: 1 addition & 1 deletion tests/internals/test_internals.c
Original file line number Diff line number Diff line change
Expand Up @@ -244,4 +244,4 @@ static void test_internal_suite() {
filter_o_opts_suite();
}

TEST_MAIN(test_internal_suite);
TEST_MAIN(test_internal_suite)
2 changes: 1 addition & 1 deletion tests/internals/test_rate_limiter.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,4 @@ void rate_limiter_suite()
sleeps_correct_amount();
}

TEST_MAIN(rate_limiter_suite);
TEST_MAIN(rate_limiter_suite)

0 comments on commit ea8a7e2

Please sign in to comment.