summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwvdputte <>1998-11-06 04:33:16 +0000
committerwvdputte <>1998-11-06 04:33:16 +0000
commit6305298cf8d6711b0977b92f825d3c386f80e8d2 (patch)
tree8f955e9bd5d36edac2207af73b0206e2cd39e161
parentdf9e03b65bc39a07be444ff3049491d54043f24c (diff)
downloadopenbsd-6305298cf8d6711b0977b92f825d3c386f80e8d2.tar.gz
openbsd-6305298cf8d6711b0977b92f825d3c386f80e8d2.tar.bz2
openbsd-6305298cf8d6711b0977b92f825d3c386f80e8d2.zip
add missing const to match prototype in string.h
-rw-r--r--src/lib/libc/string/strlcpy.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libc/string/strlcpy.c b/src/lib/libc/string/strlcpy.c
index 1a60445599..2b6a166175 100644
--- a/src/lib/libc/string/strlcpy.c
+++ b/src/lib/libc/string/strlcpy.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: strlcpy.c,v 1.1 1998/07/01 01:29:45 millert Exp $ */ 1/* $OpenBSD: strlcpy.c,v 1.2 1998/11/06 04:33:16 wvdputte Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 1998 Todd C. Miller <Todd.Miller@courtesan.com> 4 * Copyright (c) 1998 Todd C. Miller <Todd.Miller@courtesan.com>
@@ -28,7 +28,7 @@
28 */ 28 */
29 29
30#if defined(LIBC_SCCS) && !defined(lint) 30#if defined(LIBC_SCCS) && !defined(lint)
31static char *rcsid = "$OpenBSD: strlcpy.c,v 1.1 1998/07/01 01:29:45 millert Exp $"; 31static char *rcsid = "$OpenBSD: strlcpy.c,v 1.2 1998/11/06 04:33:16 wvdputte Exp $";
32#endif /* LIBC_SCCS and not lint */ 32#endif /* LIBC_SCCS and not lint */
33 33
34#include <sys/types.h> 34#include <sys/types.h>
@@ -41,7 +41,7 @@ static char *rcsid = "$OpenBSD: strlcpy.c,v 1.1 1998/07/01 01:29:45 millert Exp
41 */ 41 */
42size_t strlcpy(dst, src, siz) 42size_t strlcpy(dst, src, siz)
43 char *dst; 43 char *dst;
44 char *src; 44 const char *src;
45 size_t siz; 45 size_t siz;
46{ 46{
47 register char *d = dst; 47 register char *d = dst;