Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Jul 2014 20:29:29 +0000 (UTC)
From:      "Pedro F. Giffuni" <pfg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r268928 - head/lib/libc/stdio
Message-ID:  <201407202029.s6KKTTtk055122@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pfg
Date: Sun Jul 20 20:29:28 2014
New Revision: 268928
URL: http://svnweb.freebsd.org/changeset/base/268928

Log:
  Const-ify a character string.
  
  Obtained from:	Apple Inc. (Libc 997.90.3)
  MFC after:	3 days

Modified:
  head/lib/libc/stdio/gets.c

Modified: head/lib/libc/stdio/gets.c
==============================================================================
--- head/lib/libc/stdio/gets.c	Sun Jul 20 20:29:09 2014	(r268927)
+++ head/lib/libc/stdio/gets.c	Sun Jul 20 20:29:28 2014	(r268928)
@@ -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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201407202029.s6KKTTtk055122>