diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-06-25 16:47:00 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-06-25 16:47:00 +0000 |
commit | a9e3d5c56aa515a4a63212ced6433f4612f62e57 (patch) | |
tree | ee3a9faad1477f9e1e63f79efc16213c38862d33 /xmalloc.c | |
parent | bb459beb032cfa9473cdef21ef645b350d61728c (diff) | |
download | rtmux-a9e3d5c56aa515a4a63212ced6433f4612f62e57.tar.gz rtmux-a9e3d5c56aa515a4a63212ced6433f4612f62e57.tar.bz2 rtmux-a9e3d5c56aa515a4a63212ced6433f4612f62e57.zip |
More diff-to-OpenBSD reduction. Move a lot of compat stuff into compat.h.
Diffstat (limited to 'xmalloc.c')
-rw-r--r-- | xmalloc.c | 24 |
1 files changed, 1 insertions, 23 deletions
@@ -1,4 +1,4 @@ -/* $Id: xmalloc.c,v 1.9 2009-06-25 16:34:50 nicm Exp $ */ +/* $Id: xmalloc.c,v 1.10 2009-06-25 16:47:00 nicm Exp $ */ /* * Copyright (c) 2004 Nicholas Marriott <nicm@users.sourceforge.net> @@ -142,25 +142,3 @@ xvsnprintf(char *buf, size_t len, const char *fmt, va_list ap) return (i); } - -/* - * Some systems modify the path in place. This function and xbasename below - * avoid that by using a temporary buffer. - */ -char * -xdirname(const char *src) -{ - static char dst[MAXPATHLEN]; - - strlcpy(dst, src, sizeof dst); - return (dirname(dst)); -} - -char * -xbasename(const char *src) -{ - static char dst[MAXPATHLEN]; - - strlcpy(dst, src, sizeof dst); - return (basename(dst)); -} |