This is an automated email from the git hooks/post-receive script.
andyp pushed a commit to branch main in repository gfs2-utils.
commit 3a763146b7fd6789b82e395f2710836e4ccb8db2 Author: Andrew Price anprice@redhat.com AuthorDate: Thu Jan 13 17:26:00 2022 +0000
gfs2_edit: Clean up some unused macros
Signed-off-by: Andrew Price anprice@redhat.com --- gfs2/edit/hexedit.c | 4 ---- gfs2/edit/hexedit.h | 15 --------------- 2 files changed, 19 deletions(-)
diff --git a/gfs2/edit/hexedit.c b/gfs2/edit/hexedit.c index 13af4007..cf121204 100644 --- a/gfs2/edit/hexedit.c +++ b/gfs2/edit/hexedit.c @@ -27,10 +27,6 @@ #include "journal.h" #include "struct_print.h"
-#define printbe32(struct, member) do { \ - print_it(" "#member, "%"PRIu32, "0x%"PRIx32, be32_to_cpu(struct->member)); \ - } while(0) - const char *mtypes[] = {"none", "sb", "rg", "rb", "di", "in", "lf", "jd", "lh", "ld", "ea", "ed", "lb", "13", "qc"}; const char *allocdesc[2][5] = { diff --git a/gfs2/edit/hexedit.h b/gfs2/edit/hexedit.h index 156874da..3b1d8e86 100644 --- a/gfs2/edit/hexedit.h +++ b/gfs2/edit/hexedit.h @@ -139,21 +139,6 @@ void die(const char *fmt, ...) exit(-1); }
-/* Memory macros */ - -#define type_alloc(ptr, type, count) \ -{ \ - (ptr) = (type *)malloc(sizeof(type) * (count)); \ - if (!(ptr)) \ - die("unable to allocate memory on line %d of file %s\n", \ - __LINE__, __FILE__); \ -} - -#define printk printw - -/* Divide x by y. Round up if there is a remainder. */ -#define DIV_RU(x, y) (((x) + (y) - 1) / (y)) - #define TITLE1 "gfs2_edit - Global File System Editor (use with extreme caution)" #define TITLE2 REDHAT_COPYRIGHT " - Press H for help"
cluster-commits@lists.fedorahosted.org