summaryrefslogtreecommitdiff
path: root/source3/modules/perfcount_test.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-02-14 18:10:20 +0100
committerVolker Lendecke <vl@samba.org>2009-02-14 22:01:02 +0100
commitef3672a6554b3a628aebb3a0649e9e541f12818d (patch)
treefd88502eaffb71fa2088396624fbf73d71a9ee4e /source3/modules/perfcount_test.c
parent208b8f76b38e122638744b6c65a25d2b84e17af0 (diff)
downloadsamba-ef3672a6554b3a628aebb3a0649e9e541f12818d.tar.gz
samba-ef3672a6554b3a628aebb3a0649e9e541f12818d.tar.bz2
samba-ef3672a6554b3a628aebb3a0649e9e541f12818d.zip
Fix some C++ warnings
Diffstat (limited to 'source3/modules/perfcount_test.c')
-rw-r--r--source3/modules/perfcount_test.c21
1 files changed, 14 insertions, 7 deletions
diff --git a/source3/modules/perfcount_test.c b/source3/modules/perfcount_test.c
index e0954bf9d7..bcae3fb6f2 100644
--- a/source3/modules/perfcount_test.c
+++ b/source3/modules/perfcount_test.c
@@ -223,7 +223,8 @@ static void perfcount_test_start(struct smb_perfcount_data *pcd)
static void perfcount_test_add(struct smb_perfcount_data *pcd)
{
- struct perfcount_test_context *ctxt = pcd->context;
+ struct perfcount_test_context *ctxt =
+ (struct perfcount_test_context *)pcd->context;
struct perfcount_test_counter *ctr;
if (pcd->context == NULL) {
@@ -243,7 +244,8 @@ static void perfcount_test_add(struct smb_perfcount_data *pcd)
static void perfcount_test_set_op(struct smb_perfcount_data *pcd, int op)
{
- struct perfcount_test_context *ctxt = pcd->context;
+ struct perfcount_test_context *ctxt =
+ (struct perfcount_test_context *)pcd->context;
if (pcd->context == NULL) {
DEBUG(0,("perfcount_test_set_op - uninitialized "
@@ -256,7 +258,8 @@ static void perfcount_test_set_op(struct smb_perfcount_data *pcd, int op)
static void perfcount_test_set_subop(struct smb_perfcount_data *pcd, int sub_op)
{
- struct perfcount_test_context *ctxt = pcd->context;
+ struct perfcount_test_context *ctxt =
+ (struct perfcount_test_context *)pcd->context;
if (pcd->context == NULL) {
DEBUG(0,("perfcount_test_set_sub_op - uninitialized "
@@ -269,7 +272,8 @@ static void perfcount_test_set_subop(struct smb_perfcount_data *pcd, int sub_op)
static void perfcount_test_set_ioctl(struct smb_perfcount_data *pcd, int io_ctl)
{
- struct perfcount_test_context *ctxt = pcd->context;
+ struct perfcount_test_context *ctxt =
+ (struct perfcount_test_context *)pcd->context;
if (pcd->context == NULL) {
DEBUG(0,("perfcount_test_set_ioctl - uninitialized "
"perfcount context - %p\n", pcd));
@@ -281,7 +285,8 @@ static void perfcount_test_set_ioctl(struct smb_perfcount_data *pcd, int io_ctl)
static void perfcount_test_set_msglen_in(struct smb_perfcount_data *pcd,
uint64_t bytes_in)
{
- struct perfcount_test_context *ctxt = pcd->context;
+ struct perfcount_test_context *ctxt =
+ (struct perfcount_test_context *)pcd->context;
if (pcd->context == NULL) {
DEBUG(0,("perfcount_test_set_msglen_in - "
"uninitialized perfcount context - %p\n", pcd));
@@ -293,7 +298,8 @@ static void perfcount_test_set_msglen_in(struct smb_perfcount_data *pcd,
static void perfcount_test_set_msglen_out(struct smb_perfcount_data *pcd,
uint64_t bytes_out)
{
- struct perfcount_test_context *ctxt = pcd->context;
+ struct perfcount_test_context *ctxt =
+ (struct perfcount_test_context *)pcd->context;
if (pcd->context == NULL) {
DEBUG(0,("perfcount_test_set_msglen_out - uninitialized "
@@ -329,7 +335,8 @@ static void perfcount_test_set_client(struct smb_perfcount_data *pcd,
static void perfcount_test_end(struct smb_perfcount_data *pcd)
{
- struct perfcount_test_context *ctxt = pcd->context;
+ struct perfcount_test_context *ctxt =
+ (struct perfcount_test_context *)pcd->context;
if (pcd->context == NULL) {
DEBUG(0,("perfcount_test_end - uninitialized "
"perfcount context - %p\n", pcd));