summaryrefslogtreecommitdiffstats
path: root/source3/client/clitar_proto.h
diff options
context:
space:
mode:
authorDavid Disseldorp <ddiss@samba.org>2014-02-14 17:16:14 +0100
committerAndreas Schneider <asn@samba.org>2014-02-19 18:22:29 +0100
commit8dc6f0fb39647e37a444ac582b5b33e27b40b3dc (patch)
tree3469cdd8a5a29a0ec4282a89aab2787f4e537665 /source3/client/clitar_proto.h
parent14c6e9b6b8c0f67a0cd85508c94413fb42ac20f7 (diff)
downloadsamba-8dc6f0fb39647e37a444ac582b5b33e27b40b3dc.tar.gz
samba-8dc6f0fb39647e37a444ac582b5b33e27b40b3dc.tar.xz
samba-8dc6f0fb39647e37a444ac582b5b33e27b40b3dc.zip
clitar: get tar context handle via helper function
Add and use tar_get_ctx() to get the tarmode context handle in client.c, rather than declaring an extern. Also, add checks for NULL context pointer arguments. Signed-off-by: David Disseldorp <ddiss@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'source3/client/clitar_proto.h')
-rw-r--r--source3/client/clitar_proto.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/client/clitar_proto.h b/source3/client/clitar_proto.h
index 3b2671a93e..65204768ea 100644
--- a/source3/client/clitar_proto.h
+++ b/source3/client/clitar_proto.h
@@ -29,5 +29,6 @@ int cmd_tar(void);
int tar_process(struct tar* tar);
int tar_parse_args(struct tar *tar, const char *flag, const char **val, int valsize);
bool tar_to_process(struct tar *tar);
+struct tar *tar_get_ctx(void);
#endif /* _CLITAR_PROTO_H_ */