summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-08-05 18:22:20 +0200
committerVolker Lendecke <vl@samba.org>2011-08-10 19:56:09 +0200
commit38fb4df6944ee660044788d5a8cb6764d8a2caef (patch)
tree7440a75bfa5009777cce012c8b4aabe808640a60 /source3/smbd
parent223fbc9c62b832a2959ce75d1fcd0824330b6f18 (diff)
downloadsamba-38fb4df6944ee660044788d5a8cb6764d8a2caef.tar.gz
samba-38fb4df6944ee660044788d5a8cb6764d8a2caef.tar.bz2
samba-38fb4df6944ee660044788d5a8cb6764d8a2caef.zip
s3: Adapt msg_idmap.c to Samba coding conventions
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/msg_idmap.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source3/smbd/msg_idmap.c b/source3/smbd/msg_idmap.c
index b534ac3846..e87b313493 100644
--- a/source3/smbd/msg_idmap.c
+++ b/source3/smbd/msg_idmap.c
@@ -156,7 +156,7 @@ static void message_idmap_flush(struct messaging_context *msg_ctx,
struct server_id server_id,
DATA_BLOB* data)
{
- const char* msg = data ? (const char*)data->data : NULL;
+ const char *msg = data ? (const char *)data->data : NULL;
if ((msg == NULL) || (msg[0] == '\0')) {
flush_gid_cache();
@@ -172,14 +172,14 @@ static void message_idmap_flush(struct messaging_context *msg_ctx,
static void message_idmap_delete(struct messaging_context *msg_ctx,
- void* private_data,
+ void *private_data,
uint32_t msg_type,
struct server_id server_id,
DATA_BLOB* data)
{
- const char* msg = (data && data->data) ? (const char*)data->data : "<NULL>";
+ const char *msg = (data && data->data) ? (const char *)data->data : "<NULL>";
bool do_kill = (msg_type == MSG_IDMAP_KILL);
- struct user_struct* validated_users = smbd_server_conn->smb1.sessions.validated_users;
+ struct user_struct *validated_users = smbd_server_conn->smb1.sessions.validated_users;
struct id id;
if (!parse_id(msg, &id)) {
@@ -187,7 +187,7 @@ static void message_idmap_delete(struct messaging_context *msg_ctx,
return;
}
- if( do_kill && id_in_use(validated_users, &id) ) {
+ if (do_kill && id_in_use(validated_users, &id)) {
exit_server_cleanly(msg);
} else {
delete_from_cache(&id);