summaryrefslogtreecommitdiff
path: root/xmodmap.h
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2011-11-11 21:07:30 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2011-11-16 22:58:49 -0800
commitd0dfd2128e6111b967c51136d97093d3b53ee6d6 (patch)
tree63c7c0abdb2a5d0fa52013abe9dee3f710839c73 /xmodmap.h
parentfecb1f5a0c2121de6d9209fc9525ac7d9b9555ea (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.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/xmodmap.h b/xmodmap.h
index 1540b2a..686ee1b 100644
--- a/xmodmap.h
+++ b/xmodmap.h
@@ -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);