summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2020-09-07 21:35:48 +0300
committerDmitry Stogov <dmitry@zend.com>2020-09-07 21:35:48 +0300
commit4a2ae84188b904d24c7c26bf2696507c2feb6947 (patch)
treecae51e7d398d5d6d9189b1c754744e972b717380 /main
parentfd0b39905c299c24941644f22947553e0e009dbf (diff)
downloadphp-git-4a2ae84188b904d24c7c26bf2696507c2feb6947.tar.gz
Add "const". Move constant strings to read-only memory.
Diffstat (limited to 'main')
-rw-r--r--main/strlcat.c2
-rw-r--r--main/strlcpy.c2
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>