summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2013-02-18 16:24:38 +0100
committerAlexander Bokovoy <ab@samba.org>2013-02-22 16:36:12 +0100
commit03cf4bedf0bb9729fcf70f321647cf780e002a48 (patch)
tree122c1708da33cc8bdb9605df2ad2aa439e12ca43
parentde14fd942aaaa4e18bae7fc7cb109d9a60b12648 (diff)
downloadsamba-03cf4bedf0bb9729fcf70f321647cf780e002a48.tar.gz
samba-03cf4bedf0bb9729fcf70f321647cf780e002a48.tar.bz2
samba-03cf4bedf0bb9729fcf70f321647cf780e002a48.zip
winbind: Correctly cast name to messaging_send_buf().
Reviewed-by: Alexander Bokovoy <ab@samba.org>
-rw-r--r--source3/winbindd/winbindd_dual.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/winbindd/winbindd_dual.c b/source3/winbindd/winbindd_dual.c
index 08f3dda5f7..8ba82d7e06 100644
--- a/source3/winbindd/winbindd_dual.c
+++ b/source3/winbindd/winbindd_dual.c
@@ -612,7 +612,7 @@ void winbind_msg_offline(struct messaging_context *msg_ctx,
messaging_send_buf(msg_ctx, pid_to_procid(child->pid),
MSG_WINBIND_OFFLINE,
- (uint8 *)child->domain->name,
+ (const uint8_t *)child->domain->name,
strlen(child->domain->name)+1);
}
}
@@ -661,7 +661,7 @@ void winbind_msg_online(struct messaging_context *msg_ctx,
messaging_send_buf(msg_ctx,
pid_to_procid(idmap->pid),
MSG_WINBIND_ONLINE,
- (uint8 *)domain->name,
+ (const uint8_t *)domain->name,
strlen(domain->name)+1);
}
}
@@ -686,7 +686,7 @@ void winbind_msg_online(struct messaging_context *msg_ctx,
messaging_send_buf(msg_ctx, pid_to_procid(child->pid),
MSG_WINBIND_ONLINE,
- (uint8 *)child->domain->name,
+ (const uint8_t *)child->domain->name,
strlen(child->domain->name)+1);
}
}