]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
lib: remove unused pieces of string_wrappers.h
authorAndrew Tridgell <tridge@samba.org>
Thu, 24 Mar 2011 00:42:40 +0000 (11:42 +1100)
committerAndrew Tridgell <tridge@samba.org>
Fri, 25 Mar 2011 03:37:06 +0000 (04:37 +0100)
lib/util/string_wrappers.h
source3/include/proto.h
source3/libsmb/clistr.c

index 31d0a92252d37053425fd32e09a65ee2f5d75142..75718e942ba0c339065a59ae1e41e2c293046511 100644 (file)
@@ -29,8 +29,6 @@ char * __unsafe_string_function_usage_here__(void);
 
 size_t __unsafe_string_function_usage_here_size_t__(void);
 
-size_t __unsafe_string_function_usage_here_char__(void);
-
 #ifdef HAVE_COMPILER_WILL_OPTIMIZE_OUT_FNS
 
 /* if the compiler will optimize out function calls, then use this to tell if we are
@@ -87,9 +85,6 @@ size_t __unsafe_string_function_usage_here_char__(void);
     ? __unsafe_string_function_usage_here_size_t__() \
     : push_string_check_fn(dest, src, dest_len, flags))
 
-#define pull_string_talloc(ctx, base_ptr, smb_flags2, dest, src, src_len, flags) \
-    pull_string_talloc_fn(ctx, base_ptr, smb_flags2, dest, src, src_len, flags)
-
 #define clistr_push(cli, dest, src, dest_len, flags) \
     (CHECK_STRING_SIZE(dest, dest_len) \
     ? __unsafe_string_function_usage_here_size_t__() \
@@ -121,7 +116,6 @@ size_t __unsafe_string_function_usage_here_char__(void);
 #define safe_strcpy safe_strcpy_fn
 #define safe_strcat safe_strcat_fn
 #define push_string_check push_string_check_fn
-#define pull_string_talloc pull_string_talloc_fn
 #define clistr_push clistr_push_fn
 #define clistr_pull clistr_pull_fn
 #define srvstr_push srvstr_push_fn
index 8e1bcc6417830a86a2d41891d94b6e63b3e8309a..3c454460f23196dd2d362a1c36a650407672a2bd 100644 (file)
@@ -461,7 +461,7 @@ size_t pull_string_fn(const void *base_ptr,
                        size_t dest_len,
                        size_t src_len,
                        int flags);
-size_t pull_string_talloc_fn(TALLOC_CTX *ctx,
+size_t pull_string_talloc(TALLOC_CTX *ctx,
                        const void *base_ptr,
                        uint16 smb_flags2,
                        char **ppdest,
index 373cce590dda9dc23014e1b2733a3458925c3e96..944479c2a8f676ea30d92bb00d0af770b0354db9 100644 (file)
@@ -66,13 +66,13 @@ size_t clistr_pull_talloc(TALLOC_CTX *ctx,
                          int src_len,
                          int flags)
 {
-       return pull_string_talloc_fn(ctx,
-                                    base,
-                                    flags2,
-                                    pp_dest,
-                                    src,
-                                    src_len,
-                                    flags);
+       return pull_string_talloc(ctx,
+                                 base,
+                                 flags2,
+                                 pp_dest,
+                                 src,
+                                 src_len,
+                                 flags);
 }
 
 size_t clistr_align_out(struct cli_state *cli, const void *p, int flags)