diff options
author | Mattias Andrée <maandree@kth.se> | 2016-07-16 16:05:48 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2016-07-16 16:05:48 +0200 |
commit | c5a454342f78eec4c58b1477d9190a084f40cfac (patch) | |
tree | 3f98b7e6412182942bc36d44402790541d91fcea /src/filter.c | |
parent | The stuff around supportinf SIGRTMIN+0 and SIGRTMIN+1 (diff) | |
download | coopgammad-c5a454342f78eec4c58b1477d9190a084f40cfac.tar.gz coopgammad-c5a454342f78eec4c58b1477d9190a084f40cfac.tar.bz2 coopgammad-c5a454342f78eec4c58b1477d9190a084f40cfac.tar.xz |
attributes
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'src/filter.c')
-rw-r--r-- | src/filter.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/filter.c b/src/filter.c index 943401e..c335e0b 100644 --- a/src/filter.c +++ b/src/filter.c @@ -29,7 +29,7 @@ * * @param this The filter */ -void filter_destroy(struct filter* this) +void filter_destroy(struct filter* restrict this) { free(this->class); free(this->ramps); @@ -52,11 +52,11 @@ void filter_destroy(struct filter* this) * @param ramps_size The byte-size of `this->ramps` * @return The number of marshalled byte */ -size_t filter_marshal(const struct filter* this, void* buf, size_t ramps_size) +size_t filter_marshal(const struct filter* restrict this, void* restrict buf, size_t ramps_size) { size_t off = 0, n; char nonnulls = 0; - char* bs = buf; + char* restrict bs = buf; if (bs != NULL) { @@ -101,11 +101,11 @@ size_t filter_marshal(const struct filter* this, void* buf, size_t ramps_size) * @param ramps_size The byte-size of `this->ramps` * @return The number of unmarshalled bytes, 0 on error */ -size_t filter_unmarshal(struct filter* this, const void* buf, size_t ramps_size) +size_t filter_unmarshal(struct filter* restrict this, const void* restrict buf, size_t ramps_size) { size_t off = 0, n; char nonnulls = 0; - const char* bs = buf; + const char* restrict bs = buf; nonnulls = *(bs + off); off += 1; |