From: Ronnie Sahlberg Date: Sun, 28 Aug 2011 09:45:00 +0000 (+1000) Subject: wondows dont have vasprintf() X-Git-Tag: upstream/1.9.6^2~326^2~7 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=f4442bec270bed165ecac69451ea72f6c821d168;p=deb_libnfs.git wondows dont have vasprintf() disable for now and reimplement later --- diff --git a/lib/init.c b/lib/init.c index 536a56c..222bee9 100644 --- a/lib/init.c +++ b/lib/init.c @@ -99,8 +99,8 @@ void rpc_set_error(struct rpc_context *rpc, char *error_string, ...) free(rpc->error_string); } va_start(ap, error_string); - vasprintf(&str, error_string, ap); - rpc->error_string = str; + // vasprintf(&str, error_string, ap); + // rpc->error_string = str; va_end(ap); } diff --git a/lib/libnfs.c b/lib/libnfs.c index a003464..5fd91ea 100644 --- a/lib/libnfs.c +++ b/lib/libnfs.c @@ -2899,11 +2899,11 @@ void nfs_set_error(struct nfs_context *nfs, char *error_string, ...) char *str = NULL; va_start(ap, error_string); - vasprintf(&str, error_string, ap); - if (nfs->rpc->error_string != NULL) { - free(nfs->rpc->error_string); - } - nfs->rpc->error_string = str; + // vasprintf(&str, error_string, ap); + // if (nfs->rpc->error_string != NULL) { + // free(nfs->rpc->error_string); + //} + //nfs->rpc->error_string = str; va_end(ap); }