wondows dont have vasprintf()

disable for now  and reimplement later
libnfs-4.0.0-vitalif
Ronnie Sahlberg 2011-08-28 19:45:00 +10:00
parent 6874f61e24
commit f4442bec27
2 changed files with 7 additions and 7 deletions

View File

@ -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);
}

View File

@ -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);
}