diff options
author | Guillem Jover <guillem@debian.org> | 2015-09-15 20:59:50 +0200 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2015-09-17 04:26:09 +0200 |
commit | c7413c2c4fd3db02bc6aa9c5513b8490faea63d4 (patch) | |
tree | dd04863198b350a91ee8710af97f2053067ede71 /utils/start-stop-daemon.c | |
parent | 571df9b2933bbd34c11ba4536875e8c3803e0342 (diff) | |
download | dpkg-c7413c2c4fd3db02bc6aa9c5513b8490faea63d4.tar.gz |
s-s-d: Remove now unused xstrdup() function
Warned-by: gcc
Diffstat (limited to 'utils/start-stop-daemon.c')
-rw-r--r-- | utils/start-stop-daemon.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/utils/start-stop-daemon.c b/utils/start-stop-daemon.c index 6d74febc8..0f4c326cd 100644 --- a/utils/start-stop-daemon.c +++ b/utils/start-stop-daemon.c @@ -297,17 +297,6 @@ xmalloc(int size) } static char * -xstrdup(const char *str) -{ - char *new_str; - - new_str = strdup(str); - if (new_str) - return new_str; - fatal("strdup(%s) failed", str); -} - -static char * xstrndup(const char *str, size_t n) { char *new_str; |