aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-07-20 22:31:12 +0200
committerMattias Andrée <maandree@kth.se>2016-07-20 22:31:12 +0200
commit50372e69d7d4495ace3ebb98e019fbf9f1552a20 (patch)
treef822ea2842166d9bce51b224a16200eed043ea51 /src
parentAdd libcoopgamma_synchronise.3 (diff)
downloadlibcoopgamma-50372e69d7d4495ace3ebb98e019fbf9f1552a20.tar.gz
libcoopgamma-50372e69d7d4495ace3ebb98e019fbf9f1552a20.tar.bz2
libcoopgamma-50372e69d7d4495ace3ebb98e019fbf9f1552a20.tar.xz
m
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--src/libcoopgamma.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/libcoopgamma.h b/src/libcoopgamma.h
index fb3b9c4..633fe65 100644
--- a/src/libcoopgamma.h
+++ b/src/libcoopgamma.h
@@ -1347,11 +1347,12 @@ int libcoopgamma_flush(libcoopgamma_context_t* restrict);
* if the message is corrupt any of the listed requests can
* be selected even if it is not for any of the requests.
* Functions that parse the message will detect such corruption.
- * @return Zero on success, -1 on error, -2 if the message is ignored
+ * @return Zero on success, -1 on error. If the the message is ignored,
* which happens if corresponding `libcoopgamma_async_context_t`
- * is not listed. If `-1` is returned, `errno` will be set,
- * if it is set to `ENOTRECOVERABLE` you have receive a corrupt
- * message and the context has been tainted beyond recover.
+ * is not listed, -1 is returned and `errno` is set to 0. If -1
+ * is returned, `errno` is set to `ENOTRECOVERABLE` you have
+ * received a corrupt message and the context has been tainted
+ * beyond recover.
*/
LIBCOOPGAMMA_GCC_ONLY(__attribute__((__nonnull__, __leaf__)))
int libcoopgamma_synchronise(libcoopgamma_context_t* restrict, libcoopgamma_async_context_t* restrict,