Better yet - to match the declaration in proto.h we should use socklen_t.:

--- ../source/smbd/oplock.c Fri May 17 07:16:51 2002
+++ ./smbd/oplock.c Fri May 17 16:27:55 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);
+ socklen_t fromlen = sizeof(from);
  int32 msg_len = 0;
 
  smb_read_error = 0;



----- Original Message ----- 
From: "Matt Seitz" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, May 17, 2002 4:09 PM
Subject: RE: One more compile warning fix for Solaris


From: Richard Bollinger [mailto:[EMAIL PROTECTED]]
>- int fromlen = sizeof(from);
>+ unsigned int fromlen = sizeof(from);

Wouldn't the following be more portable?
size_t fromlen = sizeof(from);

Sincerely,

Matt Seitz
Senior Software Engineer
Quantum Corporation



Reply via email to