diff options
author | Ken Raeburn <raeburn@mit.edu> | 2002-08-21 21:32:33 +0000 |
---|---|---|
committer | Ken Raeburn <raeburn@mit.edu> | 2002-08-21 21:32:33 +0000 |
commit | 964f96d15a7ce08140173fbc5c2bfe2ccbd8cc01 (patch) | |
tree | 504ef8e0d8e75846e062009fe2679229a59c73b7 /src/include/port-sockets.h | |
parent | 32cf5d5a732c530904fcef93c0d6f6e2e3fabd02 (diff) | |
download | krb5-964f96d15a7ce08140173fbc5c2bfe2ccbd8cc01.zip krb5-964f96d15a7ce08140173fbc5c2bfe2ccbd8cc01.tar.gz krb5-964f96d15a7ce08140173fbc5c2bfe2ccbd8cc01.tar.bz2 |
* port-sockets.h (SG_BUF): New macro
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14739 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/include/port-sockets.h')
-rw-r--r-- | src/include/port-sockets.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/include/port-sockets.h b/src/include/port-sockets.h index 5dc936a..4e49b98 100644 --- a/src/include/port-sockets.h +++ b/src/include/port-sockets.h @@ -16,6 +16,7 @@ typedef WSABUF sg_buf; : ((SG)->buf += (N), (SG)->len -= (N), 0)) #define SG_LEN(SG) ((SG)->len + 0) +#define SG_BUF(SG) ((SG)->buf + 0) #define SG_SET(SG, B, N) ((SG)->buf = (char *)(B),(SG)->len = (N)) #define SOCKET_INITIALIZE() 0 @@ -102,6 +103,7 @@ typedef struct iovec sg_buf; (SG)->iov_len -= (N), 0)) #define SG_LEN(SG) ((SG)->iov_len + 0) +#define SG_BUF(SG) ((char*)(SG)->iov_base + 0) #define SG_SET(SG, B, L) ((SG)->iov_base = (char*)(B), (SG)->iov_len = (L)) /* Some of our own infrastructure where the WinSock stuff was too hairy |