From 577b99728abc426833e2ff1d61e9d0419099ef22 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 4 Aug 2016 18:46:46 +0200 Subject: libcoopgamma_synchronise allows 0 calls to synchronise This is useful for waiting for the server to close or keep the buffer from becoming full --- src/libcoopgamma.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libcoopgamma.h b/src/libcoopgamma.h index a4a21e5..f670afa 100644 --- a/src/libcoopgamma.h +++ b/src/libcoopgamma.h @@ -1461,7 +1461,7 @@ int libcoopgamma_flush(libcoopgamma_context_t* restrict); * received a corrupt message and the context has been tainted * beyond recover. */ -LIBCOOPGAMMA_GCC_ONLY(__attribute__((__nonnull__, __leaf__))) +LIBCOOPGAMMA_GCC_ONLY(__attribute__((__nonnull__(1, 4), __leaf__))) int libcoopgamma_synchronise(libcoopgamma_context_t* restrict, libcoopgamma_async_context_t* restrict, size_t, size_t* restrict); -- cgit v1.2.3-70-g09d2