summaryrefslogtreecommitdiff
path: root/utils/start-stop-daemon.c
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2015-09-15 20:59:50 +0200
committerGuillem Jover <guillem@debian.org>2015-09-17 04:26:09 +0200
commitc7413c2c4fd3db02bc6aa9c5513b8490faea63d4 (patch)
treedd04863198b350a91ee8710af97f2053067ede71 /utils/start-stop-daemon.c
parent571df9b2933bbd34c11ba4536875e8c3803e0342 (diff)
downloaddpkg-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.c11
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;