summaryrefslogtreecommitdiff
path: root/src/menus.c
diff options
context:
space:
mode:
authorMichael Jennings <mej@lanl.gov>2020-02-28 17:06:54 -0700
committerMichael Jennings <mej@lanl.gov>2020-02-28 17:06:54 -0700
commit5d475d010500ffaf1801266e7d1d99f7494b114e (patch)
tree0c38ac261f813ade37e69fc644bfaadaee6b5463 /src/menus.c
parent37d7e09045f5c4035f749cad4ffa7f5808f3f230 (diff)
downloadeterm-5d475d010500ffaf1801266e7d1d99f7494b114e.tar.gz
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!
Diffstat (limited to 'src/menus.c')
-rw-r--r--src/menus.c4
1 files changed, 2 insertions, 2 deletions
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);