diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-12-08 18:46:20 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-12-08 18:46:20 -0800 |
commit | e4688bb9e4b6e0333a84420864bf39cf4c4fa86f (patch) | |
tree | 6b96e9618d2bece88b62e809b361aa7bccd30b9f /xdpyinfo.c | |
parent | 6bb053f46101e659c4f3a877bf8d17ad37a23225 (diff) |
Call memset() instead of hand-coding our own equivalent
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'xdpyinfo.c')
-rw-r--r-- | xdpyinfo.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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 (); |