One more compile warning fix for Solaris

Richard Bollinger rabollinger at attbi.com
Fri May 17 13:01:03 GMT 2002


Fixes this error using WorkShop Compilers 5.0 98/12/15 C 5.0 on sparc-sun-solaris2.8:

Compiling smbd/oplock.c
"smbd/oplock.c", line 136: warning: argument #6 is incompatible with prototype:
prototype: pointer to uint : "include/proto.h", line 365
argument : pointer to int

--- ../source/smbd/oplock.c Fri May 17 07:16:51 2002
+++ ./smbd/oplock.c Fri May 17 15:51:56 2002
@@ -76,7 +76,7 @@
 BOOL receive_local_message(fd_set *fds, char *buffer, int buffer_len, int timeout)
 {
  struct sockaddr_in from;
- int fromlen = sizeof(from);
+ unsigned int fromlen = sizeof(from);
  int32 msg_len = 0;
 
  smb_read_error = 0;


Rich Bollinger, Elliott Company





More information about the samba-technical mailing list