diff options
author | Volker Lendecke <vl@samba.org> | 2009-07-18 21:28:54 -0400 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2009-07-24 02:15:28 +0200 |
commit | 19245509fc30239f408b726c8c8223c549f2718c (patch) | |
tree | c1aa90d82c33e709b7454ee38ac89e1f17ae7321 | |
parent | d005e4dabb396607d959ece8da3c649797d59d44 (diff) | |
download | samba-19245509fc30239f408b726c8c8223c549f2718c.tar.gz samba-19245509fc30239f408b726c8c8223c549f2718c.tar.bz2 samba-19245509fc30239f408b726c8c8223c549f2718c.zip |
Fix some C++ warnings
-rw-r--r-- | source3/modules/vfs_commit.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/source3/modules/vfs_commit.c b/source3/modules/vfs_commit.c index 6c363229d3..6cf1c1a35d 100644 --- a/source3/modules/vfs_commit.c +++ b/source3/modules/vfs_commit.c @@ -102,7 +102,7 @@ static int commit_all( { struct commit_info *c; - if ((c = VFS_FETCH_FSP_EXTENSION(handle, fsp))) { + if ((c = (struct commit_info *)VFS_FETCH_FSP_EXTENSION(handle, fsp))) { if (c->dbytes) { DEBUG(module_debug, ("%s: flushing %lu dirty bytes\n", @@ -122,7 +122,8 @@ static int commit( { struct commit_info *c; - if ((c = VFS_FETCH_FSP_EXTENSION(handle, fsp)) == NULL) { + if ((c = (struct commit_info *)VFS_FETCH_FSP_EXTENSION(handle, fsp)) + == NULL) { return 0; } @@ -190,7 +191,8 @@ static int commit_open( MODULE, "eof mode", "none"); if (dthresh > 0 || !strequal(eof_mode, "none")) { - c = VFS_ADD_FSP_EXTENSION(handle, fsp, struct commit_info, NULL); + c = (struct commit_info *)VFS_ADD_FSP_EXTENSION( + handle, fsp, struct commit_info, NULL); /* Process main tunables */ if (c) { c->dthresh = dthresh; @@ -282,7 +284,8 @@ static int commit_ftruncate( result = SMB_VFS_NEXT_FTRUNCATE(handle, fsp, len); if (result == 0) { struct commit_info *c; - if ((c = VFS_FETCH_FSP_EXTENSION(handle, fsp))) { + if ((c = (struct commit_info *)VFS_FETCH_FSP_EXTENSION( + handle, fsp))) { commit(handle, fsp, len, 0); c->eof = len; } |