summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio
diff options
context:
space:
mode:
authorpfg <pfg@FreeBSD.org>2014-07-20 20:29:28 +0000
committerpfg <pfg@FreeBSD.org>2014-07-20 20:29:28 +0000
commitc4f36e2654f64ccb778ee6578351b04fdce2beb5 (patch)
tree24a5aa95ff015471fc18186e9c4b12a9ae42f836 /lib/libc/stdio
parent8c44f4d5e2720f2acdcf5f17db3908e6b5a396c9 (diff)
downloadFreeBSD-src-c4f36e2654f64ccb778ee6578351b04fdce2beb5.zip
FreeBSD-src-c4f36e2654f64ccb778ee6578351b04fdce2beb5.tar.gz
Const-ify a character string.
Obtained from: Apple Inc. (Libc 997.90.3) MFC after: 3 days
Diffstat (limited to 'lib/libc/stdio')
-rw-r--r--lib/libc/stdio/gets.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/stdio/gets.c b/lib/libc/stdio/gets.c
index c7c1c2f..c943851 100644
--- a/lib/libc/stdio/gets.c
+++ b/lib/libc/stdio/gets.c
@@ -52,7 +52,7 @@ gets(char *buf)
int c;
char *s;
static int warned;
- static char w[] =
+ static const char w[] =
"warning: this program uses gets(), which is unsafe.\n";
FLOCKFILE(stdin);
OpenPOWER on IntegriCloud