summaryrefslogtreecommitdiffstats
path: root/source/torture
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2007-12-06 17:16:33 -0800
committerJeremy Allison <jra@samba.org>2007-12-06 17:16:33 -0800
commitc87f3eba9aa52f4ab25d77e2167262bf5c43b1a6 (patch)
treee55e332617c8bb33b5f173c33936828adfd9c76c /source/torture
parent48252d124d83aaa502b7821564978b9bf5babd03 (diff)
downloadsamba-c87f3eba9aa52f4ab25d77e2167262bf5c43b1a6.tar.gz
samba-c87f3eba9aa52f4ab25d77e2167262bf5c43b1a6.tar.xz
samba-c87f3eba9aa52f4ab25d77e2167262bf5c43b1a6.zip
Remove pstrings from client/client.c by doing a large rewrite.
Mostly compiles.... Jeremy.
Diffstat (limited to 'source/torture')
-rw-r--r--source/torture/rpctorture.c2
-rw-r--r--source/torture/vfstest.c9
2 files changed, 6 insertions, 5 deletions
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);