aboutsummaryrefslogtreecommitdiff
path: root/string/strndup.c
diff options
context:
space:
mode:
Diffstat (limited to 'string/strndup.c')
-rw-r--r--string/strndup.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/string/strndup.c b/string/strndup.c
index 15b19f7..a15a006 100644
--- a/string/strndup.c
+++ b/string/strndup.c
@@ -37,9 +37,7 @@ char *malloc ();
#endif
char *
-__strndup (s, n)
- const char *s;
- size_t n;
+__strndup (const char *s, size_t n)
{
size_t len = __strnlen (s, n);
char *new = (char *) malloc (len + 1);