s3:libsmb: make trans2_bytes_push_str() non-static
authorStefan Metzmacher <metze@samba.org>
Wed, 6 Jul 2011 16:23:52 +0000 (18:23 +0200)
committerStefan Metzmacher <metze@samba.org>
Thu, 7 Jul 2011 12:45:12 +0000 (14:45 +0200)
We should use this and get rid of clistr_push().

metze

source3/libsmb/clifile.c
source3/libsmb/proto.h

index eab278f1c35263cc9cbb173e4f7f1039e26aaa4d..9bb83ec9c6e6fdfc4de32b74a265c4cfc04da08e 100644 (file)
@@ -128,9 +128,9 @@ uint8_t *smb_bytes_push_bytes(uint8_t *buf, uint8_t prefix,
  other modules use async trans calls.
 ***********************************************************/
 
-static uint8_t *trans2_bytes_push_str(uint8_t *buf, bool ucs2,
-                           const char *str, size_t str_len,
-                           size_t *pconverted_size)
+uint8_t *trans2_bytes_push_str(uint8_t *buf, bool ucs2,
+                              const char *str, size_t str_len,
+                              size_t *pconverted_size)
 {
        return internal_bytes_push_str(buf, ucs2, str, str_len,
                        false, pconverted_size);
index 1919b084b5ec254bed88cd676347cbdc55cb454d..9783b0d0e83eb34905d63eee018d3d7bbebec165 100644 (file)
@@ -354,6 +354,9 @@ uint8_t *smb_bytes_push_str(uint8_t *buf, bool ucs2, const char *str,
                            size_t str_len, size_t *pconverted_size);
 uint8_t *smb_bytes_push_bytes(uint8_t *buf, uint8_t prefix,
                              const uint8_t *bytes, size_t num_bytes);
+uint8_t *trans2_bytes_push_str(uint8_t *buf, bool ucs2,
+                              const char *str, size_t str_len,
+                              size_t *pconverted_size);
 struct tevent_req *cli_open_create(TALLOC_CTX *mem_ctx,
                                   struct event_context *ev,
                                   struct cli_state *cli, const char *fname,