svn commit: samba r3962 - in branches/SAMBA_4_0/source: ldap_server
ntvfs/ipc
metze at samba.org
metze at samba.org
Thu Nov 25 18:25:27 GMT 2004
Author: metze
Date: 2004-11-25 18:25:22 +0000 (Thu, 25 Nov 2004)
New Revision: 3962
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=3962
Log:
fix compiler warnings
metze
Modified:
branches/SAMBA_4_0/source/ldap_server/ldap_rootdse.c
branches/SAMBA_4_0/source/ntvfs/ipc/ipc_rap.c
Changeset:
Modified: branches/SAMBA_4_0/source/ldap_server/ldap_rootdse.c
===================================================================
--- branches/SAMBA_4_0/source/ldap_server/ldap_rootdse.c 2004-11-25 18:23:58 UTC (rev 3961)
+++ branches/SAMBA_4_0/source/ldap_server/ldap_rootdse.c 2004-11-25 18:25:22 UTC (rev 3962)
@@ -134,7 +134,7 @@
DATA_BLOB *currentTime = talloc_array_p(mem_ctx, DATA_BLOB, num_currentTime);
char *str = ldap_timestring(mem_ctx, time(NULL));
ALLOC_CHECK(str);
- currentTime[0].data = str;
+ currentTime[0].data = (void *)str;
currentTime[0].length = strlen(str);
ATTR_SINGLE_NOVAL(mem_ctx, attrs, currentTime, num_currentTime, "currentTime");
return NT_STATUS_OK;
Modified: branches/SAMBA_4_0/source/ntvfs/ipc/ipc_rap.c
===================================================================
--- branches/SAMBA_4_0/source/ntvfs/ipc/ipc_rap.c 2004-11-25 18:23:58 UTC (rev 3961)
+++ branches/SAMBA_4_0/source/ntvfs/ipc/ipc_rap.c 2004-11-25 18:25:22 UTC (rev 3962)
@@ -241,12 +241,12 @@
switch(r.in.level) {
case 0:
NDR_OK(ndr_push_bytes(call->ndr_push_data,
- r.out.info[i].info0.name,
+ (const uint8_t *)r.out.info[i].info0.name,
sizeof(r.out.info[i].info0.name)));
break;
case 1:
NDR_OK(ndr_push_bytes(call->ndr_push_data,
- r.out.info[i].info1.name,
+ (const uint8_t *)r.out.info[i].info1.name,
sizeof(r.out.info[i].info1.name)));
NDR_OK(ndr_push_uint8(call->ndr_push_data,
r.out.info[i].info1.pad));
@@ -324,12 +324,12 @@
switch(r.in.level) {
case 0:
NDR_OK(ndr_push_bytes(call->ndr_push_data,
- r.out.info[i].info0.name,
+ (const uint8_t *)r.out.info[i].info0.name,
sizeof(r.out.info[i].info0.name)));
break;
case 1:
NDR_OK(ndr_push_bytes(call->ndr_push_data,
- r.out.info[i].info1.name,
+ (const uint8_t *)r.out.info[i].info1.name,
sizeof(r.out.info[i].info1.name)));
NDR_OK(ndr_push_uint8(call->ndr_push_data,
r.out.info[i].info1.version_major));
More information about the samba-cvs
mailing list