diff options
author | Volker Lendecke <vlendec@samba.org> | 2005-03-12 09:49:23 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 10:56:00 -0500 |
commit | 5ba3fb825bd9228f1471925bf80bc6e7ade94ee9 (patch) | |
tree | dad0552bcaf7ba4b2dbaa1582fb4136d2cfb3c6e /source3/tdb | |
parent | 08af1e6dccd479d4819dfdac28b8c3efc38d8174 (diff) | |
download | samba-5ba3fb825bd9228f1471925bf80bc6e7ade94ee9.tar.gz samba-5ba3fb825bd9228f1471925bf80bc6e7ade94ee9.tar.bz2 samba-5ba3fb825bd9228f1471925bf80bc6e7ade94ee9.zip |
r5767: Get rid of some compiler warnings
(This used to be commit 66471de977a56cbe58921f61da28cc7dcbc6e93e)
Diffstat (limited to 'source3/tdb')
-rw-r--r-- | source3/tdb/tdbutil.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source3/tdb/tdbutil.c b/source3/tdb/tdbutil.c index 45ebdae3af..682f8cc68e 100644 --- a/source3/tdb/tdbutil.c +++ b/source3/tdb/tdbutil.c @@ -40,7 +40,7 @@ static void gotalarm_sig(void) Make a TDB_DATA and keep the const warning in one place ****************************************************************/ -static TDB_DATA make_tdb_data(const char *dptr, size_t dsize) +TDB_DATA make_tdb_data(const char *dptr, size_t dsize) { TDB_DATA ret; ret.dptr = dptr; @@ -48,6 +48,11 @@ static TDB_DATA make_tdb_data(const char *dptr, size_t dsize) return ret; } +TDB_DATA string_tdb_data(const char *string) +{ + return make_tdb_data(string, strlen(string)); +} + /**************************************************************************** Lock a chain with timeout (in seconds). ****************************************************************************/ |