|
42 | 42 | * Portions Copyright (c) 1994, Regents of the University of California
|
43 | 43 | * Portions taken from FreeBSD.
|
44 | 44 | *
|
45 |
| - * $PostgreSQL: pgsql/src/bin/initdb/initdb.c,v 1.134 2007/02/20 23:49:38 momjian Exp $ |
| 45 | + * $PostgreSQL: pgsql/src/bin/initdb/initdb.c,v 1.135 2007/03/18 16:50:43 neilc Exp $ |
46 | 46 | *
|
47 | 47 | *-------------------------------------------------------------------------
|
48 | 48 | */
|
@@ -727,7 +727,7 @@ get_encoding_id(char *encoding_name)
|
727 | 727 | struct encoding_match
|
728 | 728 | {
|
729 | 729 | enum pg_enc pg_enc_code;
|
730 |
| - char *system_enc_name; |
| 730 | + const char *system_enc_name; |
731 | 731 | };
|
732 | 732 |
|
733 | 733 | struct encoding_match encoding_match_list[] = {
|
@@ -1481,8 +1481,8 @@ static void
|
1481 | 1481 | setup_auth(void)
|
1482 | 1482 | {
|
1483 | 1483 | PG_CMD_DECL;
|
1484 |
| - char **line; |
1485 |
| - static char *pg_authid_setup[] = { |
| 1484 | + const char **line; |
| 1485 | + static const char *pg_authid_setup[] = { |
1486 | 1486 | /*
|
1487 | 1487 | * Create triggers to ensure manual updates to shared catalogs will be
|
1488 | 1488 | * reflected into their "flat file" copies.
|
@@ -1623,8 +1623,8 @@ static void
|
1623 | 1623 | setup_depend(void)
|
1624 | 1624 | {
|
1625 | 1625 | PG_CMD_DECL;
|
1626 |
| - char **line; |
1627 |
| - static char *pg_depend_setup[] = { |
| 1626 | + const char **line; |
| 1627 | + static const char *pg_depend_setup[] = { |
1628 | 1628 | /*
|
1629 | 1629 | * Make PIN entries in pg_depend for all objects made so far in the
|
1630 | 1630 | * tables that the dependency code handles. This is overkill (the
|
@@ -1990,8 +1990,8 @@ static void
|
1990 | 1990 | make_template0(void)
|
1991 | 1991 | {
|
1992 | 1992 | PG_CMD_DECL;
|
1993 |
| - char **line; |
1994 |
| - static char *template0_setup[] = { |
| 1993 | + const char **line; |
| 1994 | + static const char *template0_setup[] = { |
1995 | 1995 | "CREATE DATABASE template0;\n",
|
1996 | 1996 | "UPDATE pg_database SET "
|
1997 | 1997 | " datistemplate = 't', "
|
@@ -2045,8 +2045,8 @@ static void
|
2045 | 2045 | make_postgres(void)
|
2046 | 2046 | {
|
2047 | 2047 | PG_CMD_DECL;
|
2048 |
| - char **line; |
2049 |
| - static char *postgres_setup[] = { |
| 2048 | + const char **line; |
| 2049 | + static const char *postgres_setup[] = { |
2050 | 2050 | "CREATE DATABASE postgres;\n",
|
2051 | 2051 | NULL
|
2052 | 2052 | };
|
|
0 commit comments