diff options
author | Volker Lendecke <vl@sernet.de> | 2008-09-09 14:35:42 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2008-09-09 17:37:34 +0200 |
commit | 6344b8ec27809950810024956161e041d6e83753 (patch) | |
tree | 2aa72f9aab617c34f4cfe0765aaf4ee53d7fdee8 /source3 | |
parent | ce47a2b2e3b76edb77673efeb14c4dd0c8cd7aa5 (diff) | |
download | samba-6344b8ec27809950810024956161e041d6e83753.tar.gz samba-6344b8ec27809950810024956161e041d6e83753.tar.bz2 samba-6344b8ec27809950810024956161e041d6e83753.zip |
make smb_bytes_push_str public
(This used to be commit d611f599b45ad9dad1027a16a0e8da7d4b96e608)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/include/proto.h | 1 | ||||
-rw-r--r-- | source3/libsmb/clifile.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h index 8d033f1837..d51be6781d 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -4382,6 +4382,7 @@ int cli_nt_create_full(struct cli_state *cli, const char *fname, uint32 CreateDisposition, uint32 CreateOptions, uint8 SecuityFlags); int cli_nt_create(struct cli_state *cli, const char *fname, uint32 DesiredAccess); +uint8_t *smb_bytes_push_str(uint8_t *buf, bool ucs2, const char *str); struct async_req *cli_open_send(TALLOC_CTX *mem_ctx, struct event_context *ev, struct cli_state *cli, const char *fname, int flags, int share_mode); diff --git a/source3/libsmb/clifile.c b/source3/libsmb/clifile.c index a8b3440513..d3819af444 100644 --- a/source3/libsmb/clifile.c +++ b/source3/libsmb/clifile.c @@ -781,7 +781,7 @@ int cli_nt_create(struct cli_state *cli, const char *fname, uint32 DesiredAccess FILE_SHARE_READ|FILE_SHARE_WRITE, FILE_OPEN, 0x0, 0x0); } -static uint8_t *smb_bytes_push_str(uint8_t *buf, bool ucs2, const char *str) +uint8_t *smb_bytes_push_str(uint8_t *buf, bool ucs2, const char *str) { size_t buflen = talloc_get_size(buf); char *converted; |