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

applying coding conventions

This commit is contained in:
Steffen Vogel 2015-09-19 12:24:11 +02:00
parent 66fcf82d1c
commit 17659ffc83
9 changed files with 13 additions and 14 deletions

View file

@ -63,4 +63,4 @@ int check_license_time();
int check_license_trace();
#endif
#endif /* _CHECKS_H_ */

View file

@ -14,7 +14,7 @@
#define _CONFIG_H_
#ifndef _GIT_REV
#define _GIT_REV "nogit"
#define _GIT_REV "nogit"
#endif
/** The version number of the s2ss server */

View file

@ -21,7 +21,7 @@
#define IF_IRQ_MAX 3 /**< Maxmimal number of IRQs of an interface */
#ifndef SO_MARK
#define SO_MARK 36 /**< Workaround: add missing constant for OPAL-RT Redhawk target */
#define SO_MARK 36 /**< Workaround: add missing constant for OPAL-RT Redhawk target */
#endif
struct socket;

View file

@ -37,11 +37,11 @@
#define MSG_ENDIAN_BIG 1 /**< Message values are in bit endian format */
#if BYTE_ORDER == LITTLE_ENDIAN
#define MSG_ENDIAN_HOST MSG_ENDIAN_LITTLE
#define MSG_ENDIAN_HOST MSG_ENDIAN_LITTLE
#elif BYTE_ORDER == BIG_ENDIAN
#define MSG_ENDIAN_HOST MSG_ENDIAN_BIG
#define MSG_ENDIAN_HOST MSG_ENDIAN_BIG
#else
#error "Unknown byte order!"
#error "Unknown byte order!"
#endif
/** The total length of a message */

View file

@ -27,4 +27,4 @@ struct nl_sock * nl_init();
/** Close and free global netlink socket. */
void nl_shutdown();
#endif
#endif /* _NL_H_ */

View file

@ -33,4 +33,4 @@ int stats_stop(struct path *p);
/** Reset all statistic counters to zero */
int stats_reset(struct path *p);
#endif
#endif /* _STATS_H_ */

View file

@ -54,4 +54,4 @@ int time_fscan(FILE *f, struct timespec *ts);
/** Write a timestamp to a file with the format: "secs.nanosecs\t" */
int time_fprint(FILE *f, struct timespec *ts);
#endif
#endif /* _TIMING_H_ */

View file

@ -64,7 +64,7 @@ int hook_tofixed(struct path *p)
{
struct msg *m = p->current;
for (int i=0; i<m->length; i++)
for (int i = 0; i < m->length; i++)
m->data[i].i = m->data[i].f * 1e3;
return 0;
@ -97,7 +97,7 @@ int hook_fir(struct path *p)
/** Trim FIR length to length of history buffer */
int len = MIN(ARRAY_LEN(coeffs), p->poolsize);
for (int i=0; i<len; i++) {
for (int i = 0; i < len; i++) {
struct msg *old = &p->pool[(p->poolsize+p->received-i) % p->poolsize];
sum += coeffs[i] * old->data[HOOK_FIR_INDEX].f;
@ -114,10 +114,9 @@ int hook_decimate(struct path *p)
return p->received % HOOK_DECIMATE_RATIO;
}
/** @todo Implement */
int hook_dft(struct path *p)
{
return 0;
return 0; /** @todo Implement */
}
/** System hooks */

View file

@ -16,7 +16,7 @@
#include "stats.h"
#ifndef sigev_notify_thread_id
#define sigev_notify_thread_id _sigev_un._tid
#define sigev_notify_thread_id _sigev_un._tid
#endif
extern struct settings settings;