/*
* snap id contants
*/
-#define LIBRADOS_SNAP_HEAD ((uint64_t)(-2))
-#define LIBRADOS_SNAP_DIR ((uint64_t)(-1))
+#define LIBRADOS_SNAP_HEAD UINT64_C(-2)
+#define LIBRADOS_SNAP_DIR UINT64_C(-1)
/**
* @typedef rados_t
* @param handle the watcher handle we are notifying
* @param notifier_id the unique client id for the notifier
* @param data payload from the notifier
- * @param datalen length of payload buffer
+ * @param data_len length of payload buffer
*/
typedef void (*rados_watchcb2_t)(void *arg,
uint64_t notify_id,
* we may have missed notify events.
*
* @param pre opaque user-defined value provided to rados_watch2()
+ * @param cookie the internal id assigned to the watch session
* @param err error code
*/
typedef void (*rados_watcherrcb_t)(void *pre, uint64_t cookie, int err);