diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-11-11 21:07:30 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-11-16 22:58:49 -0800 |
commit | d0dfd2128e6111b967c51136d97093d3b53ee6d6 (patch) | |
tree | 63c7c0abdb2a5d0fa52013abe9dee3f710839c73 /xmodmap.h | |
parent | fecb1f5a0c2121de6d9209fc9525ac7d9b9555ea (diff) |
Replace chk_malloc + sprintf with asprintf
Includes local private copy of asprintf for OS'es without it in libc.
Removes chk_malloc as no callers remain anymore.
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
Diffstat (limited to 'xmodmap.h')
-rw-r--r-- | xmodmap.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -26,6 +26,10 @@ from The Open Group. */ +#ifdef HAVE_CONFIG_H +# include "config.h" +#endif + extern const char *ProgramName; extern Display *dpy; extern int min_keycode, max_keycode; @@ -56,4 +60,3 @@ extern void PrintPointerMap(FILE *fp); extern int SetPointerMap(unsigned char *map, int n); extern void _X_NORETURN Exit(int status); -extern void *chk_malloc(size_t n_bytes); |