diff options
author | Dmitry Stogov <dmitry@zend.com> | 2020-09-07 21:35:48 +0300 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2020-09-07 21:35:48 +0300 |
commit | 4a2ae84188b904d24c7c26bf2696507c2feb6947 (patch) | |
tree | cae51e7d398d5d6d9189b1c754744e972b717380 /main | |
parent | fd0b39905c299c24941644f22947553e0e009dbf (diff) | |
download | php-git-4a2ae84188b904d24c7c26bf2696507c2feb6947.tar.gz |
Add "const". Move constant strings to read-only memory.
Diffstat (limited to 'main')
-rw-r--r-- | main/strlcat.c | 2 | ||||
-rw-r--r-- | main/strlcpy.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/main/strlcat.c b/main/strlcat.c index 3c18360e96..5556bc31ae 100644 --- a/main/strlcat.c +++ b/main/strlcat.c @@ -48,7 +48,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char *rcsid = "$OpenBSD: strlcat.c,v 1.17 2016/10/14 18:19:04 dtucker Exp $"; +static const char *rcsid = "$OpenBSD: strlcat.c,v 1.17 2016/10/14 18:19:04 dtucker Exp $"; #endif /* LIBC_SCCS and not lint */ #include <sys/types.h> diff --git a/main/strlcpy.c b/main/strlcpy.c index 55959b2f3a..ef397e267e 100644 --- a/main/strlcpy.c +++ b/main/strlcpy.c @@ -48,7 +48,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char *rcsid = "$OpenBSD: strlcpy.c,v 1.15 2016/10/16 17:37:39 dtucker Exp $"; +static const char *rcsid = "$OpenBSD: strlcpy.c,v 1.15 2016/10/16 17:37:39 dtucker Exp $"; #endif /* LIBC_SCCS and not lint */ #include <sys/types.h> |