summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2022-12-08 18:46:20 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2022-12-08 18:46:20 -0800
commite4688bb9e4b6e0333a84420864bf39cf4c4fa86f (patch)
tree6b96e9618d2bece88b62e809b361aa7bccd30b9f
parent6bb053f46101e659c4f3a877bf8d17ad37a23225 (diff)
Call memset() instead of hand-coding our own equivalent
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--xdpyinfo.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/xdpyinfo.c b/xdpyinfo.c
index 06681b9..943216a 100644
--- a/xdpyinfo.c
+++ b/xdpyinfo.c
@@ -578,8 +578,7 @@ print_event_mask(char *buf, /* string to write into */
buf[0] = buf[lastcol] = '\0'; /* just in case */
-#define INDENT() { len = indent; \
- for (int i = 0; i < indent; i++) buf[i] = ' '; }
+#define INDENT() do { len = indent; memset(buf, ' ', indent); } while (0)
INDENT ();