From c87f3eba9aa52f4ab25d77e2167262bf5c43b1a6 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 6 Dec 2007 17:16:33 -0800 Subject: Remove pstrings from client/client.c by doing a large rewrite. Mostly compiles.... Jeremy. --- source/torture/rpctorture.c | 2 -- source/torture/vfstest.c | 9 ++++++--- 2 files changed, 6 insertions(+), 5 deletions(-) (limited to 'source/torture') diff --git a/source/torture/rpctorture.c b/source/torture/rpctorture.c index 8db58014b71..f0990e6dee4 100644 --- a/source/torture/rpctorture.c +++ b/source/torture/rpctorture.c @@ -23,8 +23,6 @@ #define REGISTER 0 #endif -extern file_info def_finfo; - #define CNV_LANG(s) dos2unix_format(s,False) #define CNV_INPUT(s) unix2dos_format(s,True) diff --git a/source/torture/vfstest.c b/source/torture/vfstest.c index 5f673be6dfe..04bcfab3e7a 100644 --- a/source/torture/vfstest.c +++ b/source/torture/vfstest.c @@ -579,15 +579,18 @@ int main(int argc, char *argv[]) /* Loop around accepting commands */ while(1) { - char *line; + char *line = NULL; line = smb_readline("vfstest $> ", NULL, completion_fn); - if (line == NULL) + if (line == NULL) { break; + } - if (line[0] != '\n') + if (line[0] != '\n') { process_cmd(&vfs, line); + } + SAFE_FREE(line); } conn_free(vfs.conn); -- cgit