about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2017-07-04 15:23:20 +0200
committerLeah Neukirchen <leah@vuxu.org>2017-07-04 15:23:20 +0200
commit873aa90e0411fe7a5c0cfd0cd6e89a890dc890f2 (patch)
tree30c47483bf36ab69f5fd0621f770d1715b5bc06a
parent961b168b2ceb8403c8b53c5a4d58184923a4b116 (diff)
downloadxdu-873aa90e0411fe7a5c0cfd0cd6e89a890dc890f2.tar.gz
xdu-873aa90e0411fe7a5c0cfd0cd6e89a890dc890f2.tar.xz
xdu-873aa90e0411fe7a5c0cfd0cd6e89a890dc890f2.zip
remove own strdup
-rw-r--r--xdu.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/xdu.c b/xdu.c
index 8d5f4f4..fb44488 100644
--- a/xdu.c
+++ b/xdu.c
@@ -608,24 +608,10 @@ pwd(void)
 		if (num != 0)
 			strcat(path,"/");
 	}
-	printf("%s %d (%.2f%%)\n", path, topp->size,
+	printf("%s %jd (%.2f%%)\n", path, (intmax_t)topp->size,
 		100.0*topp->size/rootp->size);
 }
 
-char *
-strdup(s)
-char *s;
-{
-	int	n;
-	char	*cp;
-
-	n = strlen(s);
-	cp = malloc(n+1);
-	strcpy(cp,s);
-
-	return	cp;
-}
-
 /**************** External Entry Points ****************/
 
 void