summaryrefslogtreecommitdiff
path: root/source3/passdb/login_cache.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-03-16 22:08:37 +0100
committerVolker Lendecke <vl@samba.org>2010-03-16 22:35:41 +0100
commit13a278c1b901cadef7e09d1dc6a89d935ebb73ea (patch)
treeb5c8f12b6ee47d30a3f0f73cd39ae18f4c785a07 /source3/passdb/login_cache.c
parent02d7cdc671e27b5ed717c4c0e088b8457caa6e4a (diff)
downloadsamba-13a278c1b901cadef7e09d1dc6a89d935ebb73ea.tar.gz
samba-13a278c1b901cadef7e09d1dc6a89d935ebb73ea.tar.bz2
samba-13a278c1b901cadef7e09d1dc6a89d935ebb73ea.zip
s3: Remove a typedef
Diffstat (limited to 'source3/passdb/login_cache.c')
-rw-r--r--source3/passdb/login_cache.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/source3/passdb/login_cache.c b/source3/passdb/login_cache.c
index 5e7e9a0b50..6ac6d52a63 100644
--- a/source3/passdb/login_cache.c
+++ b/source3/passdb/login_cache.c
@@ -63,11 +63,11 @@ bool login_cache_shutdown(void)
}
/* if we can't read the cache, oh well, no need to return anything */
-LOGIN_CACHE * login_cache_read(struct samu *sampass)
+struct login_cache * login_cache_read(struct samu *sampass)
{
char *keystr;
TDB_DATA databuf;
- LOGIN_CACHE *entry;
+ struct login_cache *entry;
uint32_t entry_timestamp = 0, bad_password_time = 0;
if (!login_cache_init())
@@ -88,7 +88,8 @@ LOGIN_CACHE * login_cache_read(struct samu *sampass)
databuf = tdb_fetch_bystring(cache, keystr);
SAFE_FREE(keystr);
- if (!(entry = SMB_MALLOC_P(LOGIN_CACHE))) {
+ entry = SMB_MALLOC_P(struct login_cache);
+ if (entry == NULL) {
DEBUG(1, ("Unable to allocate cache entry buffer!\n"));
SAFE_FREE(databuf.dptr);
return NULL;
@@ -118,7 +119,7 @@ LOGIN_CACHE * login_cache_read(struct samu *sampass)
return entry;
}
-bool login_cache_write(const struct samu *sampass, LOGIN_CACHE entry)
+bool login_cache_write(const struct samu *sampass, struct login_cache entry)
{
char *keystr;
TDB_DATA databuf;