summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-12-24 13:14:18 +0100
committerVolker Lendecke <vl@samba.org>2009-12-24 15:24:34 +0100
commit56f9d18fba6a6b426cb3ea539571cea2111cca46 (patch)
tree68611b272f2a1f92916869244ecf18b6fbd1fde3
parent6dcbb84d485b8a8ccf0c3a70d9f5f7e951aaf1c6 (diff)
downloadsamba-56f9d18fba6a6b426cb3ea539571cea2111cca46.tar.gz
samba-56f9d18fba6a6b426cb3ea539571cea2111cca46.tar.bz2
samba-56f9d18fba6a6b426cb3ea539571cea2111cca46.zip
s3: Remove some pointless casts
-rw-r--r--source3/libsmb/conncache.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/source3/libsmb/conncache.c b/source3/libsmb/conncache.c
index b440d61048..521598f655 100644
--- a/source3/libsmb/conncache.c
+++ b/source3/libsmb/conncache.c
@@ -143,7 +143,7 @@ NTSTATUS check_negative_conn_cache( const char *domain, const char *server)
if (key == NULL)
goto done;
- if (gencache_get(key, &value, (time_t *) NULL))
+ if (gencache_get(key, &value, NULL))
result = negative_conn_cache_valuedecode(value);
done:
DEBUG(9,("check_negative_conn_cache returning result %d for domain %s "
@@ -204,8 +204,7 @@ void add_failed_connection_entry(const char *domain, const char *server,
}
if (gencache_set(key, value,
- time((time_t *) NULL)
- + FAILED_CONNECTION_CACHE_TIMEOUT))
+ time(NULL) + FAILED_CONNECTION_CACHE_TIMEOUT))
DEBUG(9,("add_failed_connection_entry: added domain %s (%s) "
"to failed conn cache\n", domain, server ));
else
@@ -246,10 +245,10 @@ void flush_negative_conn_cache_for_domain(const char *domain)
goto done;
}
- gencache_iterate(delete_matches, (void *) NULL, key_pattern);
+ gencache_iterate(delete_matches, NULL, key_pattern);
DEBUG(8, ("flush_negative_conn_cache_for_domain: flushed domain %s\n",
domain));
-
+
done:
TALLOC_FREE(key_pattern);
return;