summaryrefslogtreecommitdiff
path: root/lib/strndup.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1998-12-07 03:12:10 +0000
committerJim Meyering <jim@meyering.net>1998-12-07 03:12:10 +0000
commit7d60769bead4b89a096e10bacbb503702ea6e44c (patch)
treec03ba9bef1c0339b2f4cbe993acff983cddb2146 /lib/strndup.c
parent604b3b397d5aa9ee10749f582fd67f1d2ae91a7f (diff)
downloadcoreutils-7d60769bead4b89a096e10bacbb503702ea6e44c.tar.xz
ansideclify
Diffstat (limited to 'lib/strndup.c')
-rw-r--r--lib/strndup.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/strndup.c b/lib/strndup.c
index b610e40e6..40e0ac28d 100644
--- a/lib/strndup.c
+++ b/lib/strndup.c
@@ -33,9 +33,7 @@ char *malloc ();
/* Duplicate S, returning an identical malloc'd string. */
char *
-strndup (s, n)
- const char *s;
- size_t n;
+strndup (const char *s, size_t n)
{
char *new = malloc (n + 1);