fix prototype

This commit is contained in:
quackerd 2022-06-10 00:36:36 +08:00
parent f53a24e7eb
commit 8a93a0e94c
2 changed files with 7 additions and 7 deletions

View File

@ -10,16 +10,16 @@ extern "C" {
struct topo_desc;
int
topo_num_core();
topo_num_core(void);
int
topo_num_numa();
topo_num_numa(void);
int
topo_core_to_numa(int coreid);
void
topo_destroy();
topo_destroy(void);
int
topo_init(int enable_alloc, int verbose);

8
topo.c
View File

@ -417,13 +417,13 @@ desc_init(struct topo_desc * desc, int enable_alloc, int verbose)
// public APIs
//
int
topo_num_core()
topo_num_core(void)
{
return g_default_desc.num_core;
}
int
topo_num_numa()
topo_num_numa(void)
{
return g_default_desc.num_numa;
}
@ -435,7 +435,7 @@ topo_core_to_numa(int coreid)
}
void
topo_destroy()
topo_destroy(void)
{
desc_destroy(&g_default_desc);
}
@ -453,7 +453,7 @@ topo_free(unsigned int node, void * addr)
}
uint64_t
topo_uptime_ns()
topo_uptime_ns(void)
{
return topo_desc_uptime_ns(&g_default_desc);
}