diff options
author | Matthieu Herrb <matthieu@herrb.eu> | 2016-11-03 10:02:24 +0100 |
---|---|---|
committer | Matthieu Herrb <matthieu@herrb.eu> | 2016-11-03 10:02:24 +0100 |
commit | 514e2db5bc0c55d5c3606d4d96f005290d0c5e99 (patch) | |
tree | 8f121c781e337cba12a204e6300216ee0c33cb92 | |
parent | a2919abcba9ad79a3908b6d316a632c4b8208285 (diff) | |
parent | 560d7550e23e9b14056b4a9b2569c2f256015f8a (diff) |
Merge remote-tracking branch 'origin/master' into obsd
-rw-r--r-- | Xtrans.h | 4 | ||||
-rw-r--r-- | Xtransint.h | 4 | ||||
-rw-r--r-- | Xtranssock.c | 2 |
3 files changed, 5 insertions, 5 deletions
@@ -215,6 +215,10 @@ typedef struct _XtransConnInfo *XtransConnInfo; * Function prototypes for the exposed interface */ +void TRANS(FreeConnInfo) ( + XtransConnInfo /* ciptr */ +); + #ifdef TRANS_CLIENT XtransConnInfo TRANS(OpenCOTSClient)( diff --git a/Xtransint.h b/Xtransint.h index 0a5b0e6..2156bd5 100644 --- a/Xtransint.h +++ b/Xtransint.h @@ -318,10 +318,6 @@ typedef struct _Xtransport_table { * systems, so they may be emulated. */ -static void TRANS(FreeConnInfo) ( - XtransConnInfo /* ciptr */ -); - #ifdef WIN32 #define READV(ciptr, iov, iovcnt) TRANS(ReadV)(ciptr, iov, iovcnt) diff --git a/Xtranssock.c b/Xtranssock.c index 6aabadd..05b13df 100644 --- a/Xtranssock.c +++ b/Xtranssock.c @@ -517,7 +517,7 @@ TRANS(SocketReopen) (int i _X_UNUSED, int type, int fd, const char *port) addr->sa_len = addrlen; #endif addr->sa_family = AF_UNIX; -#ifdef HAS_STRLCPY +#if defined(HAVE_STRLCPY) || defined(HAS_STRLCPY) strlcpy(addr->sa_data, port, portlen); #else strncpy(addr->sa_data, port, portlen); |