summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-07-07 17:24:32 +0200
committerStefan Metzmacher <metze@samba.org>2011-07-07 19:16:28 +0200
commit0f006751ec22a13de898fbafcb6de5a8b8d5ec15 (patch)
treee2f1934f27f29095eab98549d5a3c46bf04fdf53 /source3/libsmb
parent30574a73d8073e1bb0a552fdf8444f17eeebec74 (diff)
downloadsamba-0f006751ec22a13de898fbafcb6de5a8b8d5ec15.tar.gz
samba-0f006751ec22a13de898fbafcb6de5a8b8d5ec15.tar.bz2
samba-0f006751ec22a13de898fbafcb6de5a8b8d5ec15.zip
s3:libsmb: remove unused clistr_push_fn()
metze
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/clistr.c26
-rw-r--r--source3/libsmb/proto.h5
2 files changed, 0 insertions, 31 deletions
diff --git a/source3/libsmb/clistr.c b/source3/libsmb/clistr.c
index e66b546eab..f1264f65ce 100644
--- a/source3/libsmb/clistr.c
+++ b/source3/libsmb/clistr.c
@@ -21,32 +21,6 @@
#include "includes.h"
#include "libsmb/libsmb.h"
-size_t clistr_push_fn(struct cli_state *cli,
- void *dest,
- const char *src,
- int dest_len,
- int flags)
-{
- size_t buf_used = PTR_DIFF(dest, cli->outbuf);
- if (dest_len == -1) {
- if (((ptrdiff_t)dest < (ptrdiff_t)cli->outbuf) || (buf_used > cli->bufsize)) {
- DEBUG(0, ("Pushing string of 'unlimited' length into non-SMB buffer!\n"));
- return push_string_base(cli->outbuf,
- (uint16_t)(cli_ucs2(cli) ? FLAGS2_UNICODE_STRINGS : 0),
- dest, src, -1, flags);
- }
- return push_string_base(cli->outbuf,
- (uint16_t)(cli_ucs2(cli) ? FLAGS2_UNICODE_STRINGS : 0),
- dest, src, cli->bufsize - buf_used,
- flags);
- }
-
- /* 'normal' push into size-specified buffer */
- return push_string_base(cli->outbuf,
- (uint16_t)(cli_ucs2(cli) ? FLAGS2_UNICODE_STRINGS : 0),
- dest, src, dest_len, flags);
-}
-
size_t clistr_pull_talloc(TALLOC_CTX *ctx,
const char *base,
uint16_t flags2,
diff --git a/source3/libsmb/proto.h b/source3/libsmb/proto.h
index f364621938..2883af2fad 100644
--- a/source3/libsmb/proto.h
+++ b/source3/libsmb/proto.h
@@ -780,11 +780,6 @@ NTSTATUS cli_set_secdesc(struct cli_state *cli, uint16_t fnum,
/* The following definitions come from libsmb/clistr.c */
-size_t clistr_push_fn(struct cli_state *cli,
- void *dest,
- const char *src,
- int dest_len,
- int flags);
size_t clistr_pull_talloc(TALLOC_CTX *ctx,
const char *base,
uint16_t flags2,