(_SS_PAD1SIZE): try to write an inpenetrable expression that also
works on Crays git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8035 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -450,7 +450,7 @@ typedef unsigned short sa_family_t;
|
||||
|
||||
typedef unsigned char roken_sa_family_t;
|
||||
|
||||
#define _SS_PAD1SIZE (_SS_ALIGNSIZE - sizeof (roken_sa_family_t) - sizeof(unsigned char))
|
||||
#define _SS_PAD1SIZE ((2 * _SS_ALIGNSIZE - sizeof (roken_sa_family_t) - sizeof(unsigned char)) % _SS_ALIGNSIZE)
|
||||
#define _SS_PAD2SIZE (_SS_MAXSIZE - (sizeof (roken_sa_family_t) + sizeof(unsigned char) + _SS_PAD1SIZE + _SS_ALIGNSIZE))
|
||||
|
||||
struct sockaddr_storage {
|
||||
@@ -464,7 +464,7 @@ struct sockaddr_storage {
|
||||
|
||||
typedef unsigned short roken_sa_family_t;
|
||||
|
||||
#define _SS_PAD1SIZE (_SS_ALIGNSIZE - sizeof (roken_sa_family_t))
|
||||
#define _SS_PAD1SIZE ((2 * _SS_ALIGNSIZE - sizeof (roken_sa_family_t)) % _SS_ALIGNSIZE)
|
||||
#define _SS_PAD2SIZE (_SS_MAXSIZE - (sizeof (roken_sa_family_t) + _SS_PAD1SIZE + _SS_ALIGNSIZE))
|
||||
|
||||
struct sockaddr_storage {
|
||||
|
Reference in New Issue
Block a user