diff options
author | Michael McConville <mmcconville@mykolab.com> | 2015-12-05 17:42:40 -0500 |
---|---|---|
committer | Michael McConville <mmcconville@mykolab.com> | 2015-12-05 17:42:40 -0500 |
commit | 3a1d84cfc0988a3dbdba7a440571e987cb68973a (patch) | |
tree | ba21703f11c3ee99a7c8e5b8d1a161d0a9b21f2c /src/flexdef.h | |
parent | a562291415922732e22cd23cd330901ffa57db45 (diff) |
Replace copy_unsigned_string() with xstrdup().
Like copy_string(), copy_unsigned_string() is just a clone of the
stlib's strdup(). We only use it twice. I'm pretty confident that char
signedness is irrelevant in this case.
Diffstat (limited to 'src/flexdef.h')
-rw-r--r-- | src/flexdef.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/flexdef.h b/src/flexdef.h index 066f804..5d3f925 100644 --- a/src/flexdef.h +++ b/src/flexdef.h @@ -860,9 +860,6 @@ extern unsigned char clower PROTO ((int)); /* strdup() that fails fatally on allocation failures. */ extern char *xstrdup(const char *); -/* Returns a dynamically allocated copy of a (potentially) unsigned string. */ -extern unsigned char *copy_unsigned_string PROTO ((unsigned char *)); - /* Compare two characters for use by qsort with '\0' sorting last. */ extern int cclcmp PROTO ((const void *, const void *)); |