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

sample: use libc ptrdiff_t instead of posix off_t

This commit is contained in:
Steffen Vogel 2018-05-08 11:41:43 +02:00
parent b18c776a5c
commit 935ee584e4

View file

@ -29,11 +29,11 @@
extern "C" {
#endif
#include <stddef.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
#include <time.h>
#include <sys/types.h>
/* Forward declarations */
struct pool;
@ -81,7 +81,7 @@ struct sample {
struct node *source; /**< The node from which this sample originates. */
atomic_int refcnt; /**< Reference counter. */
off_t pool_off; /**< This sample belongs to this memory pool (relative pointer). See sample_pool(). */
ptrdiff_t pool_off; /**< This sample belongs to this memory pool (relative pointer). See sample_pool(). */
/** A long bitfield indicating the number representation of the first 64 values in sample::data[].
*