about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRoland McGrath <roland@hack.frob.com>2011-08-14 16:42:06 -0700
committerRoland McGrath <roland@hack.frob.com>2011-08-14 16:42:06 -0700
commit69f630971184cae39d578709089d175c4b743390 (patch)
tree560472cf374e8a4bc290264177b3acb068fcdd7c
parent675456ef83622a17c86ae60b94b8e5e3a9d5bb2f (diff)
downloadglibc-69f630971184cae39d578709089d175c4b743390.tar.gz
glibc-69f630971184cae39d578709089d175c4b743390.tar.xz
glibc-69f630971184cae39d578709089d175c4b743390.zip
More warning patrol.
-rw-r--r--ChangeLog2
-rw-r--r--string/strncat.c7
2 files changed, 4 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index 341deebefc..456951833d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2011-08-14  Roland McGrath  <roland@hack.frob.com>
 
+	* string/strncat.c (STRNCAT): Use prototype definition.
+
 	* locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
 	(locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
 	-Iprograms here.
diff --git a/string/strncat.c b/string/strncat.c
index 72d9d697ac..0a3d4af709 100644
--- a/string/strncat.c
+++ b/string/strncat.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1991,1997,2011 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -29,10 +29,7 @@ typedef char reg_char;
 #endif
 
 char *
-STRNCAT (s1, s2, n)
-     char *s1;
-     const char *s2;
-     size_t n;
+STRNCAT (char *s1, const char *s2, size_t n)
 {
   reg_char c;
   char *s = s1;