Browse Source

*** empty log message ***

François Pinard 30 years ago
parent
commit
8699641bb3
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/rmt.c
  2. 1 1
      src/rmt.h

+ 1 - 1
src/rmt.c

@@ -252,7 +252,7 @@ checkbuf(record, size)
 	maxrecsize = size;
 	maxrecsize = size;
 #ifdef SO_RCVBUF
 #ifdef SO_RCVBUF
 	while (size > 1024 &&
 	while (size > 1024 &&
-	       setsockopt(0, SOL_SOCKET, SO_RCVBUF, &size, sizeof (size)) < 0)
+	       setsockopt(0, SOL_SOCKET, SO_RCVBUF, (char *)&size, sizeof (size)) < 0)
 		size -= 1024;
 		size -= 1024;
 #else
 #else
 	size= 1+((size-1)%1024);
 	size= 1+((size-1)%1024);

+ 1 - 1
src/rmt.h

@@ -62,7 +62,7 @@ extern char *__rmt_path;
 extern char *index();
 extern char *index();
 #endif
 #endif
 
 
-#define _remdev(path)	(!f_force_local && __rmt_path=index(path, ':'))
+#define _remdev(path)	(!f_force_local && (__rmt_path=index(path, ':')))
 #define _isrmt(fd)		((fd) >= __REM_BIAS)
 #define _isrmt(fd)		((fd) >= __REM_BIAS)
 
 
 #define rmtopen(path,oflag,mode) (_remdev(path) ? __rmt_open(path, oflag, mode, __REM_BIAS) : open(path, oflag, mode))
 #define rmtopen(path,oflag,mode) (_remdev(path) ? __rmt_open(path, oflag, mode, __REM_BIAS) : open(path, oflag, mode))