summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/lib/crc32.c2
-rw-r--r--source3/rpc_server/srv_util.c3
-rw-r--r--source3/smbd/oplock.c2
3 files changed, 3 insertions, 4 deletions
diff --git a/source3/lib/crc32.c b/source3/lib/crc32.c
index b92bc70d12..ad7131a800 100644
--- a/source3/lib/crc32.c
+++ b/source3/lib/crc32.c
@@ -60,7 +60,7 @@ static unsigned long CRCTable[256] =
uint32 crc32_calc_buffer( uint32 count, char *buffer)
{
- unsigned long crc=0xffffffff;
+ uint32 crc=0xffffffff;
int i;
for(i=0;i<count;i++)
{
diff --git a/source3/rpc_server/srv_util.c b/source3/rpc_server/srv_util.c
index 520a9cc02a..f9532981e0 100644
--- a/source3/rpc_server/srv_util.c
+++ b/source3/rpc_server/srv_util.c
@@ -384,8 +384,7 @@ static BOOL api_pipe_bind_req(pipes_struct *p, prs_struct *pd)
/*** authentication info ***/
- make_rpc_hdr_auth(&p->auth_info,
- 0x0a, 0x06, 0);
+ make_rpc_hdr_auth(&p->auth_info, 0x0a, 0x06, 0, 1);
smb_io_rpc_hdr_auth("", &p->auth_info, &p->rverf, 0);
mem_realloc_data(p->rverf.data, p->rverf.offset);
diff --git a/source3/smbd/oplock.c b/source3/smbd/oplock.c
index c5a19df0e9..fee1b8141d 100644
--- a/source3/smbd/oplock.c
+++ b/source3/smbd/oplock.c
@@ -54,7 +54,7 @@ BOOL open_oplock_ipc(void)
if (oplock_sock == -1)
{
DEBUG(0,("open_oplock_ipc: Failed to get local UDP socket for \
-address %x. Error was %s\n", htonl(INADDR_LOOPBACK), strerror(errno)));
+address %lx. Error was %s\n", htonl(INADDR_LOOPBACK), strerror(errno)));
global_oplock_port = 0;
return(False);
}