]> Dogcows Code - chaz/tar/commitdiff
*** empty log message ***
authorFrançois Pinard <pinard@iro.umontreal.ca>
Wed, 16 Nov 1994 02:45:25 +0000 (02:45 +0000)
committerFrançois Pinard <pinard@iro.umontreal.ca>
Wed, 16 Nov 1994 02:45:25 +0000 (02:45 +0000)
src/rmt.c
src/rmt.h

index 8337e26a093a5047dd025bb99999bfe0c80a2a91..1e7669d957b8beb59c6a24fd3530fab554c52648 100644 (file)
--- a/src/rmt.c
+++ b/src/rmt.c
@@ -252,7 +252,7 @@ checkbuf(record, size)
        maxrecsize = size;
 #ifdef SO_RCVBUF
        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;
 #else
        size= 1+((size-1)%1024);
index c4744060b4800e3267070243a66ac8dd4ed9360b..6260c0855ecf1bf904f3369e58904b25360fcda8 100644 (file)
--- a/src/rmt.h
+++ b/src/rmt.h
@@ -62,7 +62,7 @@ extern char *__rmt_path;
 extern char *index();
 #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 rmtopen(path,oflag,mode) (_remdev(path) ? __rmt_open(path, oflag, mode, __REM_BIAS) : open(path, oflag, mode))
This page took 0.024764 seconds and 4 git commands to generate.