diff options
author | Richard Lowe <richlowe@richlowe.net> | 2012-07-08 19:01:30 +0100 |
---|---|---|
committer | Richard Lowe <richlowe@richlowe.net> | 2016-03-05 10:42:06 -0500 |
commit | 5c5f137104b2d56181283389fa902220f2023809 (patch) | |
tree | 5819cc5071d40b48d9f06a28b95309a6f8a1ed5d /usr/src/lib/lvm | |
parent | 876de206688d9fe008ad80c116a23a56701579d1 (diff) | |
download | illumos-joyent-5c5f137104b2d56181283389fa902220f2023809.tar.gz |
2976 remove useless offsetof() macros
Reviewed by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
Reviewed by: Igor Kozhukhov <ikozhukhov@gmail.com>
Reviewed by: Andy Stormont <andyjstormont@gmail.com>
Approved by: Dan McDonald <danmcd@omniti.com>
Diffstat (limited to 'usr/src/lib/lvm')
-rw-r--r-- | usr/src/lib/lvm/libmeta/common/meta_statconcise.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/usr/src/lib/lvm/libmeta/common/meta_statconcise.c b/usr/src/lib/lvm/libmeta/common/meta_statconcise.c index 7e61135ecb..7277b5a379 100644 --- a/usr/src/lib/lvm/libmeta/common/meta_statconcise.c +++ b/usr/src/lib/lvm/libmeta/common/meta_statconcise.c @@ -23,8 +23,6 @@ * Use is subject to license terms. */ -#pragma ident "%Z%%M% %I% %E% SMI" - #include <meta.h> #include <assert.h> #include <ctype.h> @@ -32,6 +30,7 @@ #include <meta.h> #include <stdio.h> #include <stdlib.h> +#include <stddef.h> #include <strings.h> #include <sys/lvm/md_mddb.h> #include <sys/lvm/md_names.h> @@ -161,7 +160,6 @@ typedef struct md_im_list { */ #define MAXSIZEMDRECNAME 20 #define NAMEWIDTH 16 -#define offsetof(s, m) ((size_t)(&(((s *)0)->m))) #define NOT_PHYSICAL_DEV 0 #define PHYSICAL_DEV 1 |