aboutsummaryrefslogtreecommitdiff
path: root/libiberty/xstrndup.c
diff options
context:
space:
mode:
Diffstat (limited to 'libiberty/xstrndup.c')
-rw-r--r--libiberty/xstrndup.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libiberty/xstrndup.c b/libiberty/xstrndup.c
index b481e4a..8dfaa9b 100644
--- a/libiberty/xstrndup.c
+++ b/libiberty/xstrndup.c
@@ -45,9 +45,7 @@ always NUL terminated.
#include "libiberty.h"
char *
-xstrndup (s, n)
- const char *s;
- size_t n;
+xstrndup (const char *s, size_t n)
{
char *result;
size_t len = strlen (s);