1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

several fixes to silence the c++ compiler

This commit is contained in:
Steffen Vogel 2018-07-03 20:43:05 +02:00
parent 446876fd94
commit e4f3a83c49
4 changed files with 6 additions and 6 deletions

View file

@ -91,7 +91,7 @@ int kernel_get_page_size();
int kernel_get_hugepage_size();
/** Set SMP affinity of IRQ */
int kernel_irq_setaffinity(unsigned irq, uintmax_t new , uintmax_t *old );
int kernel_irq_setaffinity(unsigned irq, uintmax_t aff , uintmax_t *old );
#ifdef __cplusplus
}

View file

@ -90,7 +90,7 @@ struct mapping_entry {
int mapping_remap(struct list *m, struct sample *remapped, struct sample *original, struct stats *s);
int mapping_update(struct mapping_entry *e, struct sample *remapped, struct sample *new, struct stats *s);
int mapping_update(struct mapping_entry *e, struct sample *remapped, struct sample *original, struct stats *s);
int mapping_parse(struct mapping_entry *e, json_t *cfg, struct list *nodes);

View file

@ -80,8 +80,8 @@ json_t * stats_json(struct stats *s);
void stats_reset(struct stats *s);
void stats_print_header();
void stats_print_footer();
void stats_print_header(enum stats_format fmt);
void stats_print_footer(enum stats_format fmt);
void stats_print_periodic(struct stats *s, FILE *f, enum stats_format fmt, int verbose, struct node *p);

View file

@ -258,7 +258,7 @@ int kernel_has_cap(cap_value_t cap)
}
#endif
int kernel_irq_setaffinity(unsigned irq, uintmax_t new, uintmax_t *old)
int kernel_irq_setaffinity(unsigned irq, uintmax_t aff, uintmax_t *old)
{
char fn[64];
FILE *f;
@ -273,7 +273,7 @@ int kernel_irq_setaffinity(unsigned irq, uintmax_t new, uintmax_t *old)
if (old)
ret = fscanf(f, "%jx", old);
fprintf(f, "%jx", new);
fprintf(f, "%jx", aff);
fclose(f);
return ret;