diff options
Diffstat (limited to 'lib9p/srv_include')
-rw-r--r-- | lib9p/srv_include/lib9p/srv.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib9p/srv_include/lib9p/srv.h b/lib9p/srv_include/lib9p/srv.h index f9d240e..cea1d79 100644 --- a/lib9p/srv_include/lib9p/srv.h +++ b/lib9p/srv_include/lib9p/srv.h @@ -91,9 +91,12 @@ struct lib9p_srv_stat { struct lib9p_s extension; #endif }; -DECLARE_ERROR_OR_(struct lib9p_srv_stat, lib9p_srv_stat); +#ifdef NDEBUG +#define lib9p_srv_stat_assert(stat) ((void)0) +#else void lib9p_srv_stat_assert(const struct lib9p_srv_stat *stat); +#endif /* interface definitions ******************************************************/ @@ -178,7 +181,8 @@ DECLARE_ERROR_OR_(lo_interface lib9p_srv_file, lib9p_srv_file); /* non-"opened" generic I/O *****************************************/ \ \ /** Strings returned from stat() must remain valid until free(). */ \ - LO_FUNC(lib9p_srv_stat_or_error , stat , struct lib9p_srv_ctx *) \ + LO_FUNC(error , stat , struct lib9p_srv_ctx *, \ + struct lib9p_srv_stat * ret) \ LO_FUNC(error , wstat , struct lib9p_srv_ctx *, \ struct lib9p_srv_stat) \ LO_FUNC(error , remove , struct lib9p_srv_ctx *) \ |