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:
parent
446876fd94
commit
e4f3a83c49
4 changed files with 6 additions and 6 deletions
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue