From 5d475d010500ffaf1801266e7d1d99f7494b114e Mon Sep 17 00:00:00 2001 From: Michael Jennings Date: Fri, 28 Feb 2020 17:06:54 -0700 Subject: src/*.c, Eterm.spec: Various build fixes Several changes here to make it build on RHEL/CentOS 8: - Replace outdated MEMSET() macro with (g)libc memset() - Update Release field to use `git describe` just like LibAST - Fix `make distcheck` by adding an uninstall-hook for src/gdb.scr - At long last, remove the ancient RPM %changelog content - Fix incompatibility with my traditional choices for CFLAGS (-O0 -g3) and modern RHEL security/hardening goop which, due to being implemented in the GCC optimizer, is rendered non-functional by building with -O0! - Rename backgrounds tarball so that it doesn't have the Eterm version in its name since, shockingly, it never changes based on the version of Eterm! --- src/menus.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/menus.c') diff --git a/src/menus.c b/src/menus.c index 0b7ea67..f8306d6 100644 --- a/src/menus.c +++ b/src/menus.c @@ -471,7 +471,7 @@ menu_t *menu_create(char *title) | Button1MotionMask | Button2MotionMask | Button3MotionMask; } menu = (menu_t *) MALLOC(sizeof(menu_t)); - MEMSET(menu, 0, sizeof(menu_t)); + memset(menu, 0, sizeof(menu_t)); menu->title = STRDUP(title ? title : ""); menu->win = @@ -715,7 +715,7 @@ menuitem_t *menuitem_create(char *text) menuitem_t *menuitem; menuitem = (menuitem_t *) MALLOC(sizeof(menuitem_t)); - MEMSET(menuitem, 0, sizeof(menuitem_t)); + memset(menuitem, 0, sizeof(menuitem_t)); if (text) { menuitem->text = STRDUP(text); -- cgit v1.2.1