summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@herrb.eu>2016-11-03 10:02:24 +0100
committerMatthieu Herrb <matthieu@herrb.eu>2016-11-03 10:02:24 +0100
commit514e2db5bc0c55d5c3606d4d96f005290d0c5e99 (patch)
tree8f121c781e337cba12a204e6300216ee0c33cb92
parenta2919abcba9ad79a3908b6d316a632c4b8208285 (diff)
parent560d7550e23e9b14056b4a9b2569c2f256015f8a (diff)
Merge remote-tracking branch 'origin/master' into obsd
-rw-r--r--Xtrans.h4
-rw-r--r--Xtransint.h4
-rw-r--r--Xtranssock.c2
3 files changed, 5 insertions, 5 deletions
diff --git a/Xtrans.h b/Xtrans.h
index 6760632..360b01b 100644
--- a/Xtrans.h
+++ b/Xtrans.h
@@ -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);