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);
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to