pointless touches

This commit is contained in:
cathugger 2018-04-27 12:39:16 +00:00
parent 0fe541b5fb
commit 41eeb2edb2
5 changed files with 12 additions and 12 deletions

View file

@ -54,7 +54,7 @@
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <strings.h> #include <strings.h>
static int parsecpuinfo() static int parsecpuinfo(void)
{ {
unsigned char cpubitmap[128]; unsigned char cpubitmap[128];

View file

@ -400,7 +400,7 @@ static void filters_add(const char *filter)
return; return;
} }
// attempt to JIT. ignore error // attempt to JIT. ignore error
(void)pcre2_jit_compile(re,PCRE2_JIT_COMPLETE); (void) pcre2_jit_compile(re,PCRE2_JIT_COMPLETE);
struct pcre2filter f; struct pcre2filter f;
memset(&f,0,sizeof(f)); memset(&f,0,sizeof(f));
f.re = re; f.re = re;
@ -414,13 +414,13 @@ static void filters_add(const char *filter)
} }
#ifdef NEEDBINFILTER #ifdef NEEDBINFILTER
static void filters_dedup() static void filters_dedup(void)
{ {
//TODO //TODO
} }
#endif // NEEDBINFILTER #endif // NEEDBINFILTER
static void filters_prepare() static void filters_prepare(void)
{ {
#ifndef PCRE2FILTER #ifndef PCRE2FILTER
if (!quietflag) if (!quietflag)
@ -436,7 +436,7 @@ static void filters_prepare()
#endif #endif
} }
static void filters_clean() static void filters_clean(void)
{ {
#ifdef PCRE2FILTER #ifdef PCRE2FILTER
for (size_t i = 0;i < VEC_LENGTH(filters);++i) { for (size_t i = 0;i < VEC_LENGTH(filters);++i) {
@ -447,7 +447,7 @@ static void filters_clean()
VEC_FREE(filters); VEC_FREE(filters);
} }
static size_t filters_count() static size_t filters_count(void)
{ {
return VEC_LENGTH(filters); return VEC_LENGTH(filters);
} }
@ -624,7 +624,7 @@ static void loadfilterfile(const char *fname)
} }
} }
static void filters_print() static void filters_print(void)
{ {
if (quietflag) if (quietflag)
return; return;

View file

@ -30,7 +30,7 @@ struct texttestcase {
{"foobar", "666F6F626172", "foobar"}, {"foobar", "666F6F626172", "foobar"},
}; };
int main() int main(void)
{ {
char buf[1024], buf2[1024], mask; char buf[1024], buf2[1024], mask;
size_t r; size_t r;

View file

@ -57,7 +57,7 @@ struct masktestcase {
}; };
*/ */
int main() int main(void)
{ {
char buf[1024], buf2[1024], mask; char buf[1024], buf2[1024], mask;
size_t r; size_t r;
@ -81,4 +81,4 @@ int main()
//fprintf(stderr, ">%s\n", buf2); //fprintf(stderr, ">%s\n", buf2);
return 0; return 0;
} }

View file

@ -35,7 +35,7 @@ struct pktest {
#define SECRETKEYBYTES 64 #define SECRETKEYBYTES 64
#define PUBLICKEYBYTES 32 #define PUBLICKEYBYTES 32
int main() int main(void)
{ {
u8 seedbuf[SEEDBYTES]; u8 seedbuf[SEEDBYTES];
u8 secretbuf1[SECRETKEYBYTES]; u8 secretbuf1[SECRETKEYBYTES];
@ -63,4 +63,4 @@ int main()
} }
return 0; return 0;
} }