Skip to content

Commit

Permalink
pointless touches
Browse files Browse the repository at this point in the history
  • Loading branch information
cathugger committed Apr 27, 2018
1 parent 0fe541b commit 41eeb2e
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion cpucount.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <strings.h>
static int parsecpuinfo()
static int parsecpuinfo(void)
{
unsigned char cpubitmap[128];

Expand Down
12 changes: 6 additions & 6 deletions filters.h
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ static void filters_add(const char *filter)
return;
}
// attempt to JIT. ignore error
(void)pcre2_jit_compile(re,PCRE2_JIT_COMPLETE);
(void) pcre2_jit_compile(re,PCRE2_JIT_COMPLETE);
struct pcre2filter f;
memset(&f,0,sizeof(f));
f.re = re;
Expand All @@ -414,13 +414,13 @@ static void filters_add(const char *filter)
}

#ifdef NEEDBINFILTER
static void filters_dedup()
static void filters_dedup(void)
{
//TODO
}
#endif // NEEDBINFILTER

static void filters_prepare()
static void filters_prepare(void)
{
#ifndef PCRE2FILTER
if (!quietflag)
Expand All @@ -436,7 +436,7 @@ static void filters_prepare()
#endif
}

static void filters_clean()
static void filters_clean(void)
{
#ifdef PCRE2FILTER
for (size_t i = 0;i < VEC_LENGTH(filters);++i) {
Expand All @@ -447,7 +447,7 @@ static void filters_clean()
VEC_FREE(filters);
}

static size_t filters_count()
static size_t filters_count(void)
{
return VEC_LENGTH(filters);
}
Expand Down Expand Up @@ -624,7 +624,7 @@ static void loadfilterfile(const char *fname)
}
}

static void filters_print()
static void filters_print(void)
{
if (quietflag)
return;
Expand Down
2 changes: 1 addition & 1 deletion test_base16.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ struct texttestcase {
{"foobar", "666F6F626172", "foobar"},
};

int main()
int main(void)
{
char buf[1024], buf2[1024], mask;
size_t r;
Expand Down
4 changes: 2 additions & 2 deletions test_base32.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ struct masktestcase {
};
*/

int main()
int main(void)
{
char buf[1024], buf2[1024], mask;
size_t r;
Expand All @@ -81,4 +81,4 @@ int main()
//fprintf(stderr, ">%s\n", buf2);

return 0;
}
}
4 changes: 2 additions & 2 deletions test_ed25519.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ struct pktest {
#define SECRETKEYBYTES 64
#define PUBLICKEYBYTES 32

int main()
int main(void)
{
u8 seedbuf[SEEDBYTES];
u8 secretbuf1[SECRETKEYBYTES];
Expand Down Expand Up @@ -63,4 +63,4 @@ int main()
}

return 0;
}
}

0 comments on commit 41eeb2e

Please sign in to comment.