X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=include%2Flibnfs-private.h;h=07ce9a8f96b2b9d3edf355cbbc56cb0a4994cee5;hb=8406bfe4652b96bc997b2852690fad6203654c2b;hp=b22d9b6e89ac7d0bc6d1aa731ce6ca1f2cecdb05;hpb=766bb4af757b6f07c316337f34221ddb769fb749;p=deb_libnfs.git diff --git a/include/libnfs-private.h b/include/libnfs-private.h index b22d9b6..07ce9a8 100644 --- a/include/libnfs-private.h +++ b/include/libnfs-private.h @@ -133,8 +133,17 @@ int rpc_get_pdu_size(char *buf); int rpc_process_pdu(struct rpc_context *rpc, char *buf, int size); void rpc_error_all_pdus(struct rpc_context *rpc, char *error); -void rpc_set_error(struct rpc_context *rpc, char *error_string, ...); -void nfs_set_error(struct nfs_context *nfs, char *error_string, ...); +void rpc_set_error(struct rpc_context *rpc, char *error_string, ...) +#ifdef __GNUC__ + __attribute__((format(printf, 2, 3))) +#endif +; + +void nfs_set_error(struct nfs_context *nfs, char *error_string, ...) +#ifdef __GNUC__ + __attribute__((format(printf, 2, 3))) +#endif +; const char *nfs_get_server(struct nfs_context *nfs); const char *nfs_get_export(struct nfs_context *nfs);