From: Ken Raeburn Date: Wed, 21 Aug 2002 21:32:33 +0000 (+0000) Subject: * port-sockets.h (SG_BUF): New macro X-Git-Tag: krb5-1.3-alpha1~496 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=964f96d15a7ce08140173fbc5c2bfe2ccbd8cc01;p=krb5.git * port-sockets.h (SG_BUF): New macro git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14739 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/include/ChangeLog b/src/include/ChangeLog index 1d428a1e1..5f0dd7008 100644 --- a/src/include/ChangeLog +++ b/src/include/ChangeLog @@ -1,3 +1,7 @@ +2002-08-21 Ken Raeburn + + * port-sockets.h (SG_BUF): New macro. + 2002-08-16 Ken Raeburn * k5-int.h (struct _krb5_context): Add new member udp_pref_limit. diff --git a/src/include/port-sockets.h b/src/include/port-sockets.h index 5dc936af9..4e49b9850 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