summaryrefslogtreecommitdiffstats
path: root/lib/xstrdup.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/xstrdup.c')
-rw-r--r--lib/xstrdup.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/xstrdup.c b/lib/xstrdup.c
index d9d6010c..aa10352a 100644
--- a/lib/xstrdup.c
+++ b/lib/xstrdup.c
@@ -1,5 +1,5 @@
/* Convenience function for string allocation.
- Copyright (C) 2006 Red Hat, Inc.
+ Copyright (C) 2006, 2015 Red Hat, Inc.
This file is part of elfutils.
This file is free software; you can redistribute it and/or modify
@@ -36,8 +36,7 @@
/* Return a newly allocated copy of STRING. */
char *
-xstrdup (string)
- const char *string;
+xstrdup (const char *string)
{
return strcpy (xmalloc (strlen (string) + 1), string);
}