Print this page
2976 remove useless offsetof() macros

*** 43,54 **** #include <libintl.h> #include <locale.h> #include <sys/smbios.h> #include <libdevinfo.h> #include <stdlib.h> ! ! #define offsetof(s, m) ((size_t)(&(((s*)0)->m))) /* * Fault records are added to catalog by calling add_fault_record_to_catalog() * records are stored in order of importance to the system. * If -g flag is set or not_suppressed is not set and the class fru, fault, --- 43,53 ---- #include <libintl.h> #include <locale.h> #include <sys/smbios.h> #include <libdevinfo.h> #include <stdlib.h> ! #include <stddef.h> /* * Fault records are added to catalog by calling add_fault_record_to_catalog() * records are stored in order of importance to the system. * If -g flag is set or not_suppressed is not set and the class fru, fault,