svn commit: r240397 - user/des/sizes

Dag-Erling Smørgrav des at FreeBSD.org
Wed Sep 12 13:38:02 UTC 2012


Author: des
Date: Wed Sep 12 13:38:02 2012
New Revision: 240397
URL: http://svn.freebsd.org/changeset/base/240397

Log:
  Revert accidental commit

Modified:
  user/des/sizes/sizes.c

Modified: user/des/sizes/sizes.c
==============================================================================
--- user/des/sizes/sizes.c	Wed Sep 12 13:35:17 2012	(r240396)
+++ user/des/sizes/sizes.c	Wed Sep 12 13:38:02 2012	(r240397)
@@ -27,11 +27,6 @@
  * $FreeBSD$
  */
 
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <sys/un.h>
-#include <netinet/in.h>
-
 #include <assert.h>
 #include <limits.h>
 #include <stddef.h>
@@ -81,7 +76,7 @@ typedef void (*func_ptr)(void);
 #define describe(type)							\
 	do {								\
 		struct s_##t { char bump; type t; };			\
-		printf("%-20s %12zd %12zd\n", #type,			\
+		printf("%-12s %12zd %12zd\n", #type,			\
 		    sizeof(type) * 8,					\
 		    offsetof(struct s_##t, t) * 8);			\
 	} while (0)					
@@ -89,8 +84,8 @@ typedef void (*func_ptr)(void);
 static void
 sizes(void)
 {
-	printf("type                         size    alignment\n");
-	printf("----------------------------------------------\n");
+	printf("type                 size    alignment\n");
+	printf("--------------------------------------\n");
 	describe(char);
 	describe(short);
 	describe(int);
@@ -107,11 +102,6 @@ sizes(void)
 	describe(func_ptr);
 	describe(wchar_t);
 	describe(sig_atomic_t);
-	describe(socklen_t);
-	describe(struct sockaddr);
-	describe(struct sockaddr_un);
-	describe(struct sockaddr_in);
-	describe(struct sockaddr_in6);
 }
 
 int


More information about the svn-src-user mailing list