summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-07-18 21:28:54 -0400
committerVolker Lendecke <vl@samba.org>2009-07-24 02:15:28 +0200
commit19245509fc30239f408b726c8c8223c549f2718c (patch)
treec1aa90d82c33e709b7454ee38ac89e1f17ae7321 /source3
parentd005e4dabb396607d959ece8da3c649797d59d44 (diff)
downloadsamba-19245509fc30239f408b726c8c8223c549f2718c.tar.gz
samba-19245509fc30239f408b726c8c8223c549f2718c.tar.bz2
samba-19245509fc30239f408b726c8c8223c549f2718c.zip
Fix some C++ warnings
Diffstat (limited to 'source3')
-rw-r--r--source3/modules/vfs_commit.c11
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;
}