[Git][NTPsec/ntpsec][master] Removec a port hack for long-dead SGI machines.

Eric S. Raymond gitlab at mg.gitlab.com
Sun Sep 11 11:05:31 UTC 2016


Eric S. Raymond pushed to branch master at NTPsec / ntpsec


Commits:
8196a2dc by Eric S. Raymond at 2016-09-11T07:05:16-04:00
Removec a port hack for long-dead SGI machines.

- - - - -


1 changed file:

- libisc/unix/ifiter_sysctl.c


Changes:

=====================================
libisc/unix/ifiter_sysctl.c
=====================================
--- a/libisc/unix/ifiter_sysctl.c
+++ b/libisc/unix/ifiter_sysctl.c
@@ -18,15 +18,8 @@
 #include <net/route.h>
 #include <net/if_dl.h>
 
-/* XXX what about Alpha? */
-#ifdef sgi
-#define ROUNDUP(a) ((a) > 0 ? \
-		(1 + (((a) - 1) | (sizeof(__uint64_t) - 1))) : \
-		sizeof(__uint64_t))
-#else
 #define ROUNDUP(a) ((a) > 0 ? (1 + (((a) - 1) | (sizeof(long) - 1))) \
                     : sizeof(long))
-#endif
 
 #define IFITER_MAGIC		ISC_MAGIC('I', 'F', 'I', 'S')
 #define VALID_IFITER(t)		ISC_MAGIC_VALID(t, IFITER_MAGIC)
@@ -214,18 +207,10 @@ internal_current(isc_interfaceiter_t *iter) {
 			sa = (struct sockaddr *)((char*)(sa)
 					 + ROUNDUP(sa->sa_len));
 #else
-#ifdef sgi
-			/*
-			 * Do as the contributed SGI code does.
-			 */
-			sa = (struct sockaddr *)((char*)(sa)
-					 + ROUNDUP(_FAKE_SA_LEN_DST(sa)));
-#else
 			/* XXX untested. */
 			sa = (struct sockaddr *)((char*)(sa)
 					 + ROUNDUP(sizeof(struct sockaddr)));
 #endif
-#endif
 		}
 
 		if (addr_sa == NULL)



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/8196a2dc18c94bef9e4e867592f1b1b3c5d0ae7b
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/vc/attachments/20160911/379f76e0/attachment.html>


More information about the vc mailing list