svn commit: samba r16410 - in branches/SAMBA_4_0/source/smb_server: . smb2

metze at samba.org metze at samba.org
Tue Jun 20 09:57:00 GMT 2006


Author: metze
Date: 2006-06-20 09:57:00 +0000 (Tue, 20 Jun 2006)
New Revision: 16410

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=16410

Log:
remove some warnings of talloc_steal() usage without target
I only commit this as this is used in a global macro

tridge: we should try to get rid of this warning without using
	(void)talloc_steal(ctx, ptr);
	everywhere!!!

metze
Modified:
   branches/SAMBA_4_0/source/smb_server/smb2/smb2_server.h
   branches/SAMBA_4_0/source/smb_server/smb_server.h


Changeset:
Modified: branches/SAMBA_4_0/source/smb_server/smb2/smb2_server.h
===================================================================
--- branches/SAMBA_4_0/source/smb_server/smb2/smb2_server.h	2006-06-20 09:16:53 UTC (rev 16409)
+++ branches/SAMBA_4_0/source/smb_server/smb2/smb2_server.h	2006-06-20 09:57:00 UTC (rev 16410)
@@ -108,7 +108,7 @@
 		smb2srv_send_error(req, NT_STATUS_NO_MEMORY); \
 		return; \
 	} \
-	talloc_steal(req->tcon->ntvfs, req); \
+	(void)talloc_steal(req->tcon->ntvfs, req); \
 	req->ntvfs->frontend_data.private_data = req; \
 } while (0)
 

Modified: branches/SAMBA_4_0/source/smb_server/smb_server.h
===================================================================
--- branches/SAMBA_4_0/source/smb_server/smb_server.h	2006-06-20 09:16:53 UTC (rev 16409)
+++ branches/SAMBA_4_0/source/smb_server/smb_server.h	2006-06-20 09:57:00 UTC (rev 16410)
@@ -421,7 +421,7 @@
 		smbsrv_send_error(req, NT_STATUS_NO_MEMORY); \
 		return; \
 	} \
-	talloc_steal(req->tcon->ntvfs, req); \
+	(void)talloc_steal(req->tcon->ntvfs, req); \
 	req->ntvfs->frontend_data.private_data = req; \
 } while (0)
 



More information about the samba-cvs mailing list