Skip to content

Commit 351a20a

Browse files
committed
Addressed errors flagged by recent version of GCC
1 parent 89ad19d commit 351a20a

File tree

18 files changed

+40
-37
lines changed

18 files changed

+40
-37
lines changed

frotz/src/games/anchor.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*
1+
/*
22
Copyright (C) 2018 Microsoft Corporation
33
44
This program is free software; you can redistribute it and/or
@@ -24,9 +24,9 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
2424

2525
// Anchorhead: http://ifdb.tads.org/viewgame?id=op0uw1gn1tjqmjt7
2626

27-
const char *anchor_intro[] = { "\n", "\n", "\n" };
27+
char *anchor_intro[] = { "\n", "\n", "\n" };
2828

29-
const zword anchor_special_ram_addrs[4] = {
29+
zword anchor_special_ram_addrs[4] = {
3030
21922, // Combination lock
3131
40660, // Bathe
3232
38470, // Transitions between days

frotz/src/games/curses.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const zword curses_special_ram_addrs[9] = {
3636
20911, // Turn sceptre
3737
};
3838

39-
const char *curses_intro[] = { "\n" };
39+
char *curses_intro[] = { "\n" };
4040

4141
zword* curses_ram_addrs(int *n) {
4242
*n = 9;

frotz/src/games/hollywood.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,11 @@ const zword hollywood_special_ram_addrs[5] = {
3232
8381, // Safe dial
3333
};
3434

35-
const char *hollywood_intro[] = { "turn statue west\n",
36-
"turn statue east\n",
37-
"turn statue north\n" };
35+
char *hollywood_intro[] = {
36+
"turn statue west\n",
37+
"turn statue east\n",
38+
"turn statue north\n"
39+
};
3840

3941
zword* hollywood_ram_addrs(int *n) {
4042
*n = 5;

frotz/src/games/huntdark.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*
1+
/*
22
Copyright (C) 2018 Microsoft Corporation
33
44
This program is free software; you can redistribute it and/or
@@ -31,7 +31,7 @@ const zword huntdark_special_ram_addrs[4] = {
3131
8824, // Bats
3232
};
3333

34-
const char *huntdark_intro[] = { "\n", "\n" };
34+
char *huntdark_intro[] = { "\n", "\n" };
3535

3636
zword* huntdark_ram_addrs(int *n) {
3737
*n = 4;

frotz/src/games/jewel.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
2424

2525
// The Jewel of Knowledge: http://ifdb.tads.org/viewgame?id=hu60gp1bgkhlo5yx
2626

27-
const char *jewel_intro[] = { "bypass\n", "yes\n" };
27+
char *jewel_intro[] = { "bypass\n", "yes\n" };
2828

2929
zword* jewel_ram_addrs(int *n) {
3030
*n = 0;

frotz/src/games/library.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*
1+
/*
22
Copyright (C) 2018 Microsoft Corporation
33
44
This program is free software; you can redistribute it and/or
@@ -24,7 +24,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
2424

2525
// All Quiet on the Library Front: http://ifdb.tads.org/viewgame?id=400zakqderzjnu1i
2626

27-
const char *library_intro[] = { "\n" };
27+
char *library_intro[] = { "\n" };
2828

2929
zword* library_ram_addrs(int *n) {
3030
*n = 0;

frotz/src/games/loose.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*
1+
/*
22
Copyright (C) 2018 Microsoft Corporation
33
44
This program is free software; you can redistribute it and/or
@@ -24,7 +24,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
2424

2525
// Mother Loose: http://ifdb.tads.org/viewgame?id=4wd3lyaxi4thp8qi
2626

27-
const char *loose_intro[] = { "\n" };
27+
char *loose_intro[] = { "\n" };
2828

2929
zword* loose_ram_addrs(int *n) {
3030
*n = 0;

frotz/src/games/lurking.c

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,12 @@ const zword lurking_special_ram_addrs[6] = {
3434
883, // Cutting line
3535
};
3636

37-
const char *lurking_intro[] = { "sit on chair\n",
38-
"turn pc on\n",
39-
"login 872325412\n",
40-
"password uhlersoth\n" };
37+
char *lurking_intro[] = {
38+
"sit on chair\n",
39+
"turn pc on\n",
40+
"login 872325412\n",
41+
"password uhlersoth\n"
42+
};
4143

4244
zword* lurking_ram_addrs(int *n) {
4345
*n = 6;

frotz/src/games/partyfoul.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*
1+
/*
22
Copyright (C) 2018 Microsoft Corporation
33
44
This program is free software; you can redistribute it and/or
@@ -24,8 +24,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
2424

2525
// Party Foul - http://ifdb.tads.org/viewgame?id=cqwq699i9qiqdju
2626

27-
const char *partyfoul_intro[] = { "\n",
28-
"no\n" };
27+
char *partyfoul_intro[] = { "\n", "no\n" };
2928

3029
zword* partyfoul_ram_addrs(int *n) {
3130
*n = 0;

frotz/src/games/seastalker.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*
1+
/*
22
Copyright (C) 2018 Microsoft Corporation
33
44
This program is free software; you can redistribute it and/or
@@ -24,15 +24,15 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
2424

2525
// Seastalker: http://ifdb.tads.org/viewgame?id=56wb8hflec2isvzm
2626

27-
const char *seastalker_intro[] = { "John\n", "Wayne\n", "yes\n" };
27+
char *seastalker_intro[] = { "John\n", "Wayne\n", "yes\n" };
2828

2929
const zword seastalker_special_ram_addrs[1] = {
3030
9740, // Tracks scimitar location
3131
};
3232

3333
zword* seastalker_ram_addrs(int *n) {
3434
*n = 1;
35-
return seastalker_ram_addrs;
35+
return seastalker_special_ram_addrs;
3636
}
3737

3838
char** seastalker_intro_actions(int *n) {

0 commit comments

Comments
 (0)