summaryrefslogtreecommitdiff
path: root/source3/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
commit1b92ea5559bfa00016103508feac9a06ea4b66ae (patch)
treec11509a3fc07e7c828e1b40e4259f80d1fc0bf2e /source3/torture
parent9bd35ef153ef4b7f892dcf9e69c2232b940a9e18 (diff)
downloadsamba-1b92ea5559bfa00016103508feac9a06ea4b66ae.tar.gz
samba-1b92ea5559bfa00016103508feac9a06ea4b66ae.tar.bz2
samba-1b92ea5559bfa00016103508feac9a06ea4b66ae.zip
Remove pstrings from client/client.c by doing a large rewrite.
Mostly compiles.... Jeremy. (This used to be commit c87f3eba9aa52f4ab25d77e2167262bf5c43b1a6)
Diffstat (limited to 'source3/torture')
-rw-r--r--source3/torture/rpctorture.c2
-rw-r--r--source3/torture/vfstest.c9
2 files changed, 6 insertions, 5 deletions
diff --git a/source3/torture/rpctorture.c b/source3/torture/rpctorture.c
index 8db58014b7..f0990e6dee 100644
--- a/source3/torture/rpctorture.c
+++ b/source3/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/source3/torture/vfstest.c b/source3/torture/vfstest.c
index 5f673be6df..04bcfab3e7 100644
--- a/source3/torture/vfstest.c
+++ b/source3/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);