mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
minor formatting tweaks
This commit is contained in:
parent
4da8f1be68
commit
06b374e05e
1 changed files with 2 additions and 3 deletions
|
@ -31,15 +31,13 @@
|
|||
#include <villas/io.h>
|
||||
#include <villas/formats/json.h>
|
||||
|
||||
|
||||
int iotagent_ul_sprint(struct io *io, char *buf, size_t len, size_t *wbytes, struct sample *smps[], unsigned cnt)
|
||||
{
|
||||
size_t printed = 0;
|
||||
struct signal *sig;
|
||||
struct sample *smp = smps[0];
|
||||
|
||||
unsigned int i;
|
||||
for (i = 0; (i < smp->length) && (printed < len); i++) {
|
||||
for (unsigned i = 0; (i < smp->length) && (printed < len); i++) {
|
||||
sig = (struct signal *) vlist_at_safe(smp->signals, i);
|
||||
if (!sig)
|
||||
return -1;
|
||||
|
@ -58,6 +56,7 @@ int iotagent_ul_sprint(struct io *io, char *buf, size_t len, size_t *wbytes, str
|
|||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct plugin p;
|
||||
|
||||
__attribute__((constructor(110))) static void UNIQUE(__ctor)() {
|
||||
|
|
Loading…
Add table
Reference in a new issue