소스 검색

s-s-d: Remove now unused xstrdup() function

Warned-by: gcc
Guillem Jover 11 년 전
부모
커밋
c7413c2c4f
1개의 변경된 파일과 0개의 추가작업 그리고 11개의 파일을 삭제
  1. 0 11
      utils/start-stop-daemon.c

+ 0 - 11
utils/start-stop-daemon.c

@@ -296,17 +296,6 @@ xmalloc(int size)
 	fatal("malloc(%d) failed", 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)
 {