From ebf5bb61ddc7b00a5e45e092fbf5fac625a6f197 Mon Sep 17 00:00:00 2001
From: Per Hedbor <ph@opera.com>
Date: Sat, 18 Sep 2004 22:16:27 +0200
Subject: [PATCH] More const.

Rev: src/program.c:1.567
Rev: src/program.h:1.208
---
 src/program.c | 10 +++++-----
 src/program.h |  4 ++--
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/program.c b/src/program.c
index 3106dbf5e4..1d726a8fa8 100644
--- a/src/program.c
+++ b/src/program.c
@@ -2,11 +2,11 @@
 || This file is part of Pike. For copyright information see COPYRIGHT.
 || Pike is distributed under GPL, LGPL and MPL. See the file COPYING
 || for more information.
-|| $Id: program.c,v 1.566 2004/08/13 12:13:01 grubba Exp $
+|| $Id: program.c,v 1.567 2004/09/18 20:16:15 per Exp $
 */
 
 #include "global.h"
-RCSID("$Id: program.c,v 1.566 2004/08/13 12:13:01 grubba Exp $");
+RCSID("$Id: program.c,v 1.567 2004/09/18 20:16:15 per Exp $");
 #include "program.h"
 #include "object.h"
 #include "dynamic_buffer.h"
@@ -101,10 +101,10 @@ BLOCK_ALLOC_FILL_PAGES(program, 4)
 #define DECLARE
 #include "compilation.h"
 
-struct pike_string *this_program_string = NULL, *this_string = NULL;
-static struct pike_string *UNDEFINED_string=0;
+struct pike_string *this_program_string, *this_string;
+static struct pike_string *UNDEFINED_string;
 
-char *lfun_names[] = {
+const char *const lfun_names[]  = {
   "__INIT",
   "create",
   "destroy",
diff --git a/src/program.h b/src/program.h
index ac3ad45740..927d48b9b9 100644
--- a/src/program.h
+++ b/src/program.h
@@ -2,7 +2,7 @@
 || This file is part of Pike. For copyright information see COPYRIGHT.
 || Pike is distributed under GPL, LGPL and MPL. See the file COPYING
 || for more information.
-|| $Id: program.h,v 1.207 2004/06/30 00:16:27 nilsson Exp $
+|| $Id: program.h,v 1.208 2004/09/18 20:16:27 per Exp $
 */
 
 #ifndef PROGRAM_H
@@ -104,7 +104,7 @@ extern struct pike_string *this_program_string;
  */
 #define LFUN__SEARCH 44
 
-extern char *lfun_names[];
+extern const char *const lfun_names[];
 
 extern struct pike_string *lfun_strings[];
 
-- 
GitLab