summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-04-14 12:47:45 +1000
committerAndrew Bartlett <abartlet@samba.org>2011-04-14 12:47:45 +1000
commitb1873be59b7858253d065db5fbb2ca5791de7476 (patch)
treed579544aa8902089f83ef3a9d98cab8d05b27535 /source3
parent72dcf6d47c53c7f4f9b62567207b7bf38be1f022 (diff)
downloadsamba-b1873be59b7858253d065db5fbb2ca5791de7476.tar.gz
samba-b1873be59b7858253d065db5fbb2ca5791de7476.tar.bz2
samba-b1873be59b7858253d065db5fbb2ca5791de7476.zip
s3-lib Remove unused string_append
Diffstat (limited to 'source3')
-rw-r--r--source3/include/proto.h1
-rw-r--r--source3/lib/util_str.c22
2 files changed, 0 insertions, 23 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index eebc25f38b..4362ddb9b8 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -1029,7 +1029,6 @@ int ipstr_list_parse(const char *ipstr_list, struct ip_service **ip_list);
void ipstr_list_free(char* ipstr_list);
uint64_t STR_TO_SMB_BIG_UINT(const char *nptr, const char **entptr);
SMB_OFF_T conv_str_size(const char * str);
-void string_append(char **left, const char *right);
bool add_string_to_array(TALLOC_CTX *mem_ctx,
const char *str, const char ***strings,
int *num);
diff --git a/source3/lib/util_str.c b/source3/lib/util_str.c
index 797e61e40c..1a430d528c 100644
--- a/source3/lib/util_str.c
+++ b/source3/lib/util_str.c
@@ -1550,28 +1550,6 @@ SMB_OFF_T conv_str_size(const char * str)
return lval;
}
-void string_append(char **left, const char *right)
-{
- int new_len = strlen(right) + 1;
-
- if (*left == NULL) {
- *left = (char *)SMB_MALLOC(new_len);
- if (*left == NULL) {
- return;
- }
- *left[0] = '\0';
- } else {
- new_len += strlen(*left);
- *left = (char *)SMB_REALLOC(*left, new_len);
- }
-
- if (*left == NULL) {
- return;
- }
-
- safe_strcat(*left, right, new_len-1);
-}
-
/* Append an sprintf'ed string. Double buffer size on demand. Usable without
* error checking in between. The indiation that something weird happened is
* string==NULL */