summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/ld/common
diff options
context:
space:
mode:
authormycroft <mycroft@NetBSD.org>1993-12-07 01:44:23 +0000
committermycroft <mycroft@NetBSD.org>1993-12-07 01:44:23 +0000
commite977e5242bccd16b22f333b76c1dea69d0fb9dfd (patch)
tree0c4c494dc7376cd8f9767741ef69691624bc39a6 /gnu/usr.bin/ld/common
parentda5de96b8ad35eb2c1cc4b4b2443eca7627200fd (diff)
Prototype concat() more strongly, and remove bogus definitions of variables
in system .h files.
Diffstat (limited to 'gnu/usr.bin/ld/common')
-rw-r--r--gnu/usr.bin/ld/common/etc.c4
-rw-r--r--gnu/usr.bin/ld/common/ld.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/gnu/usr.bin/ld/common/etc.c b/gnu/usr.bin/ld/common/etc.c
index 33c6bf26604..1f4cc89a32f 100644
--- a/gnu/usr.bin/ld/common/etc.c
+++ b/gnu/usr.bin/ld/common/etc.c
@@ -1,5 +1,5 @@
/*
- * $Id: etc.c,v 1.2 1993/10/21 00:52:52 pk Exp $
+ * $Id: etc.c,v 1.3 1993/12/07 01:44:23 mycroft Exp $
*/
#include <sys/param.h>
@@ -85,7 +85,7 @@ fatal(fmt, va_alist)
char *
concat(s1, s2, s3)
- char *s1, *s2, *s3;
+ const char *s1, *s2, *s3;
{
register int len1 = strlen (s1),
len2 = strlen (s2),
diff --git a/gnu/usr.bin/ld/common/ld.h b/gnu/usr.bin/ld/common/ld.h
index 617c5213a3b..a4148d190fc 100644
--- a/gnu/usr.bin/ld/common/ld.h
+++ b/gnu/usr.bin/ld/common/ld.h
@@ -1,4 +1,4 @@
-/* $Id: ld.h,v 1.5 1993/11/10 21:53:42 pk Exp $ */
+/* $Id: ld.h,v 1.6 1993/12/07 01:44:25 mycroft Exp $ */
/*-
* This code is derived from software copyrighted by the Free Software
* Foundation.
@@ -844,7 +844,7 @@ void *xrealloc __P((void *, int));
void fatal __P((char *, ...));
void error __P((char *, ...));
void padfile __P((int,int));
-char *concat __P((char *, char *, char *));
+char *concat __P((const char *, const char *, const char *));
int parse __P((char *, char *, char *));
/* In symbol.c: */