From: François Pinard Date: Wed, 16 Nov 1994 02:45:25 +0000 (+0000) Subject: *** empty log message *** X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=8699641bb3fea97189a44e290667b45b4ab7a5a2;p=chaz%2Ftar *** empty log message *** --- diff --git a/src/rmt.c b/src/rmt.c index 8337e26..1e7669d 100644 --- 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); diff --git a/src/rmt.h b/src/rmt.h index c474406..6260c08 100644 --- 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))