diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2014-05-27 20:32:42 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2014-05-27 20:33:14 -0700 |
commit | e144ec9018cabd1d9904fb6d04382d2cf06ec3dc (patch) | |
tree | 041c96a632cb2081935d5aedb664775596d7d2f1 /utils.c | |
parent | cefec39d93846c2d034be9a89f48466831eddde6 (diff) |
Replace uStringDup() with direct calls to strdup()
strdup is available in Unix98 and later, so part of the X.Org base
platform requirements.
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'utils.c')
-rw-r--r-- | utils.c | 14 |
1 files changed, 0 insertions, 14 deletions
@@ -147,20 +147,6 @@ uInternalError(const char *s, ...) /***====================================================================***/ -#ifndef HAVE_STRDUP -char * -uStringDup(const char *str) -{ - char *rtrn; - - if (str == NULL) - return NULL; - rtrn = (char *) malloc(strlen(str) + 1); - strcpy(rtrn, str); - return rtrn; -} -#endif - #ifndef HAVE_STRCASECMP int uStrCaseCmp(const char *str1, const char *str2) |