diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2017-07-19 16:17:30 +0200 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2017-07-20 11:18:29 +0200 |
commit | 0d0a3397c22b9d5342584299acd814f6c8221c18 (patch) | |
tree | e16ce705d104618e658d859e4b13dae016846615 /lib/report | |
parent | b37e4e3f90b005e116b46949d55f95b9d1470f5b (diff) | |
download | lvm2-0d0a3397c22b9d5342584299acd814f6c8221c18.tar.gz |
cleanup: add braces in macro
Diffstat (limited to 'lib/report')
-rw-r--r-- | lib/report/report.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/report/report.c b/lib/report/report.c index de8c06ab7..71fe35a99 100644 --- a/lib/report/report.c +++ b/lib/report/report.c @@ -162,7 +162,7 @@ struct time_prop { time_id_t granularity; }; -#define ADD_TIME_PROP(id, flags, granularity) [id] = {id, flags, granularity}, +#define ADD_TIME_PROP(id, flags, granularity) [(id)] = {(id), (flags), (granularity)}, static const struct time_prop _time_props[] = { ADD_TIME_PROP(TIME_NULL, 0, TIME_NULL) @@ -228,7 +228,7 @@ struct time_reg { uint32_t reg_flags; }; -#define TIME_PROP(id) (_time_props + id) +#define TIME_PROP(id) (_time_props + (id)) static const struct time_reg _time_reg[] = { /* @@ -3915,7 +3915,7 @@ static const struct dm_report_object_type _devtypes_report_types[] = { #define STR_LIST DM_REPORT_FIELD_TYPE_STRING_LIST #define SNUM DM_REPORT_FIELD_TYPE_NUMBER #define FIELD(type, strct, sorttype, head, field, width, func, id, desc, writeable) \ - {type, sorttype, offsetof(type_ ## strct, field), width ? : sizeof(head) - 1, \ + {type, sorttype, offsetof(type_ ## strct, field), (width) ? : sizeof(head) - 1, \ #id, head, &_ ## func ## _disp, desc}, typedef struct cmd_log_item type_cmd_log_item; |