Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/ssp make the "src" strings const as in the unchecke...
details: https://anonhg.NetBSD.org/src/rev/8815932eba5a
branches: trunk
changeset: 749100:8815932eba5a
user: drochner <drochner%NetBSD.org@localhost>
date: Tue Nov 17 20:44:26 2009 +0000
description:
make the "src" strings const as in the unchecked equivalents
diffstat:
lib/libc/ssp/strcat_chk.c | 6 +++---
lib/libc/ssp/strncat_chk.c | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
diffs (54 lines):
diff -r 0919778474b6 -r 8815932eba5a lib/libc/ssp/strcat_chk.c
--- a/lib/libc/ssp/strcat_chk.c Tue Nov 17 19:47:00 2009 +0000
+++ b/lib/libc/ssp/strcat_chk.c Tue Nov 17 20:44:26 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: strcat_chk.c,v 1.3 2008/04/28 20:23:00 martin Exp $ */
+/* $NetBSD: strcat_chk.c,v 1.4 2009/11/17 20:44:26 drochner Exp $ */
/*-
* Copyright (c) 2006 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: strcat_chk.c,v 1.3 2008/04/28 20:23:00 martin Exp $");
+__RCSID("$NetBSD: strcat_chk.c,v 1.4 2009/11/17 20:44:26 drochner Exp $");
/*LINTLIBRARY*/
@@ -37,7 +37,7 @@
#include <string.h>
char *
-__strcat_chk(char * __restrict dst, char * __restrict src, size_t slen)
+__strcat_chk(char * __restrict dst, const char * __restrict src, size_t slen)
{
char *d;
diff -r 0919778474b6 -r 8815932eba5a lib/libc/ssp/strncat_chk.c
--- a/lib/libc/ssp/strncat_chk.c Tue Nov 17 19:47:00 2009 +0000
+++ b/lib/libc/ssp/strncat_chk.c Tue Nov 17 20:44:26 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: strncat_chk.c,v 1.3 2008/04/28 20:23:00 martin Exp $ */
+/* $NetBSD: strncat_chk.c,v 1.4 2009/11/17 20:44:26 drochner Exp $ */
/*-
* Copyright (c) 2006 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: strncat_chk.c,v 1.3 2008/04/28 20:23:00 martin Exp $");
+__RCSID("$NetBSD: strncat_chk.c,v 1.4 2009/11/17 20:44:26 drochner Exp $");
/*LINTLIBRARY*/
@@ -38,7 +38,7 @@
#include <stdio.h>
char *
-__strncat_chk(char * __restrict dst, char * __restrict src, size_t len,
+__strncat_chk(char * __restrict dst, const char * __restrict src, size_t len,
size_t slen)
{
char *d;
Home |
Main Index |
Thread Index |
Old Index